Class 6 Lesson 11
Q1. Define QB64 language.
Ans.
QBasic is an IDE, developed by Microsoft
to type, edit, debug and execute BASIC programs. QBasic uses English like words
and Mathematical symbols to write programs.
Q2. Write the different ways to run a
QB64 program.
Ans.
The two ways to run a program in QB64 are as follows:
1.By
pressing F5 key
2. By
selecting Run menu and clicking on the start option.
Q3. Define variables. Name the types of
variable.
Ans.
A variable is a location in the memory, which has been assigned a name, and it
used to store data temporarily. It holds the value until another
value is assigned to it.
There
are two types of variables:
1
.Numeric variables: It can hold only numeric value.
Example:
A, C, A2, ABC, A_6 .
2.
Alphanumeric or string variables: It is represented by an alphabet followed by dollar
($) sign.It contain letters ,digits ,underscore but last character is always a
$ . Example : A1$ , RK1$.
Q4. Differentiate between Numeric and
Alphanumeric constant?

1. Any
numerical value, either positive 1. A set of characters is called a
String.
Or
negative is called a Numeric constant.
2. For
example: 224, +12, -45 2. For examples: “RAGHAV”
3. These
are used for calculations. 3. It is used to represent non numeric quantities. such as name , addresses.
Q5. Define the term Hierarchy of
operations. Write the hierarchical order of the arithmetic operator in QB64?
Ans.
Hierarchy defines the order in which the operators are executed in any QBASIC
expressions. The hierarchy of QBASIC is:-
B
|
Brackets
|
( )
|
E
|
Exponentiation
|
^
|
D
|
Division
|
|
M
|
Multiplication
|
*
|
A
|
Addition
|
+
|
S
|
Subtraction
|
-
|
No comments:
Post a Comment