Professional Documents
Culture Documents
1. Language
2. Characters, Operators and expressions
3. Constants
4. Variable
5. String Constants
6. Let statement
Ans. A QBASIC is a programming language like any other language. It consists of a set of characters,
keywords, constants, variables, operators and expressions.
Ans. Constants are the data or the values in a program. These data can be a letter, words, numbers or
special characters. These cannot be changed during the program execution.
1. String Constant – Letter, words, numbers, combination of letters with numbers or special characters
enclosed in double quotes are String Constants. We cannot perform mathematical operations on String
Constant. E.g. “Rahul”. “CHART NUMBER”
2. Numeric Constant – A number is referred by Numeric Constant. A number with or without decimal is
a numeric constant. Numeric data are not enclosed in double quotes. Mathematical operations are
performed on the numeric constant. E.g. 101,202,25.25,1000
3. What do you mean by Variables? Explain their kinds.
Ans. A Variable is a place in the computer memory which has a name and stores data temporarily. In
fact, a variable is an object that stores data needed to be used in a program. A value of a variable can be
changed during the execution of the program. It could either be String or Numeric.
1. String Variable – A String Variable stores string data. Its declaration sign is dollar ($). It always starts
with a letter.
E.g. Mar = “Name” is valid
D65$ = “Name” is valid
2. Numeric Variable – A Numeric Variable stores numeric data. A numeric variable can be Integer, Long
Integer, Single Precision or Double Precision variables.
E.g. AP = 5 is valid
IP& = 6 is valid