Font size
WorksheetsGrade 7 - QBASIC Quiz
Total questions: 15
Worksheet time: 11mins
F3 key is pressed to execute or run the program to get the result.
True
False
QBASIC is the most widely used version of _______.
PASCAL
JAVA
C
BASIC
The _______ loop executes a set of instructions as long as a given condition is true.
For...Next Loop
While .... Wend Loop
Do.....Loop
The ________ loop is used to repeatedly execute a statement or a block of statements for the specified number of times.
FOR...NEXT loop
Do......Loop
While.....Wend Loop
If no STEP is used with the FOR statement, the control variable is incremented by the default value, which is ___.
1
2
3
4
What is the output of the following program?
CLS
FOR number = 1 TO 5
PRINT number
NEXT number
END
1
2
3
1
2
3
4
5
0
1
2
3
4
5
1
2
3
4
(a) is the value by which control_variable is incremented each time through the loop.
What is the output of the following program?
CLS
X = 10
DO
PRINT X
X = X + 1
LOOP UNTIL X > 14
END
10
11
12
13
14
11
12
13
14
11
12
13
14
15
10
11
12
13
14
15
(a) is a numeric variable that is used as a loop counter in For....Next Loop.
(a) enable you to execute the same sequence of statements repeatedly until a particular condition is met.
At times, two or more loops are used in a program, where one loop contains another loop within it. This is known as (a) .
Any loop can be terminated prematurely using the ___________ command.
END
EXIT
Which of the following statements is used to transfer the control from one location to another in a program?
GOTO
FOR…NEXT
MOVETO
WHILE…WEND
(a) , when used, transfer the control to a specified line in the program.
Give an example of a jump statement used in QBASIC:
(a)
