Page 66 - 1
P. 66
Search Your Database
A. Multiple Choice Questions.
1. OBASIC is a successor of _______________.
a) BASIC b) VB c) both a) and b)
2. _____________ contains various options for the working of the program.
a) Title bar b) Menu bar c) Status bar
3. ____________ statement is used to assign a value or data to a variable stated in QBASIC.
a) REM b) PRINT c) LET
4. _____________ statement is used to display the output based on comparisons.
a) IF... THEN... ELSE b) IF... THEN c) both a) and b)
5. ______________ statement is used to clear the output screen.
a) CLS b) Save c) Exit
B. Write the syntax for the following commands.
1. PRINT ________________________________________________________________
2. INPUT ________________________________________________________________
3. REM ________________________________________________________________
3. IF... THEN ________________________________________________________________
3. GOTO ________________________________________________________________
C. Correct the mistake/s in the given examples and rewrite the programs.
1. A = 10
B = 20
PRINT A, B, SUM, A + B
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
2. REM “My first program.”
_____________________________________________________________________________
3. 1 A = 10
2 B=1
5 GOTO 4
3 C=A-B
4 D=A*B
6 END
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
66