You are on page 1of 2

Class - 6

Chapter – 11 QBASIC STATEMENTS


Page No.104 of Targeting Computer

A. Fill in the blanks:

1. Language
2. Characters, Operators and expressions
3. Constants
4. Variable
5. String Constants
6. Let statement

B. Write ‘T’ for true and ‘F’ for False statements:


1. True
2. False
3. True
4. True
5. False
6. False
7. True

C. Answer the following questions:

1. What do you mean by QBASIC?

Ans. A QBASIC is a programming language like any other language. It consists of a set of characters,
keywords, constants, variables, operators and expressions.

2. What are constants? Explain with their kinds.

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.

These data or constants are categorized into two groups

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

4. Explain Input Statement?


Ans. The Input statement is a very useful command. With the help of it the user directly communicates
with the computer. The INPUT statement gets the needed information from the keyboard when the user
executes (RUN) the program.
E.g. INPUT “Enter the second number”, Num 2.

You might also like