Font size
WorksheetsL-4, Conditional and control statement
Total questions: 31
Worksheet time: 13mins
(a) statement is used to take input from the keyboard.
______________ is a non executable statement in QBasic.
INPUT
CLS
REM
To clear the screen we use (a) command.
We use ____________operators to write the condition ,which is being checked in IF ---THEN ---ELSE statement .
ARITHMENTIC OPERATORS
RELATIONAL OPERATORS
LOGICAL OPERATORS
______________ statement is used when loop has to be executed for a fixed number of times.
FOR-----NEXT LOOP
IF---THEN STATEMENT
IF-----THEN-----ELSE STATEMENT
In FOR ---NEXT loop, by default the value of the counter variable to be incremented by (a)
To display " INDIA" 10 times using FOR---NEXT LOOP STATEMENT ,the end value of a counter variable will be---------
(a)
In FOR------NEXT loop statement, the value of STEP FUNCTION can be negative.
YES
NO
IF---THEN ---ELSE is which type of statement?
Conditional statement
Looping statement
None
Which function key is used to RUN the QBasic program.
F1
F3
F5
PRINT BHOPAL is a correct statement.
YES
NO
_____ value of STEP function will print number in reverse order.
POSITIVE
NEGATIVE
The statement used to display the output on the screen is _______.
INPUT
LET
In PRINT command, the message is closed in ______.
Double Quotes
Semicolons
Single Quotes
'<' (less than) is a --------- Operator
Relational
Logical
Arithmetical
'$' (dollar) is a ---------- character used in string variable.
Special
Alphabet
Number
A>=B means
A is greater than or equal to B
B is greater than or equal to A
A is less than or equal to B
Counter Variable is also known as________
Step numeric Variable
Running numeric Variable
Loop variable
To print any string on the screen it is compulsory to enclose string with _______symbol
# #
" "
@ @
Basic statement that will be executed only when the condition is true-
GOTO
IF---THEN
FOR---NEXT
To transfer program control unconditionally to any statement in the program we should use -
GOTO
IF-THEN
FOR----NEXT
_______ function is used to change the value of the running variable .
GOTO
NEXT
STEP
ELSE should be given on the_______line as the IF statement.
Same
different
Which shortcut key combination is used to come out of the infinite loop in between the program while using GOTO statement?
Ctrl + O
Ctrl + Break
Ctrl + X
To find out the eligibility of a person to vote we should use ________statement.
IF_____Then____Else
GOTO
FOR----NEXT
PRINT " GOOD MORNING EVERYONE" is a correct way of displaying string value on the screen.
YES
NO
In IF---THEN ----ELSE STATEMENT ELSE is a true branch or false branch?
TRUE
FALSE
In IF---THEN ----ELSE STATEMENT , THEN is a true branch or false branch?
TRUE
FALSE
To displat numbers from 50 to 40 in reverse order, the starting values of a counter variable is_____?
40
50
-1
To display numbers 21 to 50 we will use _________statement.
IF---THEN
IF---THEN----ELSE
FOR-----NEXT
To display the table of any given number we should use ______statement.
IF---THEN
IF---THEN--- ELSE
FOR---NEXT
