wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Grade 7 - QBASIC Quiz

Total questions: 15

Worksheet time: 11mins

Name
Class
Date
1.

F3 key is pressed to execute or run the program to get the result.

a)

True

b)

False

2.

QBASIC is the most widely used version of _______.

a)

PASCAL

b)

JAVA

c)

C

d)

BASIC

3.

The _______ loop executes a set of instructions as long as a given condition is true.

a)

For...Next Loop

b)

While .... Wend Loop

c)

Do.....Loop

4.

The ________ loop is used to repeatedly execute a statement or a block of statements for the specified number of times.

a)

FOR...NEXT loop

b)

Do......Loop

c)

While.....Wend Loop

5.

If no STEP is used with the FOR statement, the control variable is incremented by the default value, which is ___.

a)

1

b)

2

c)

3

d)

4

6.

What is the output of the following program?

CLS

FOR number = 1 TO 5

PRINT number

NEXT number

END

a)

1

2

3

b)

1

2

3

4

5

c)

0

1

2

3

4

5

d)

1

2

3

4

7.

(a)   is the value by which control_variable is incremented each time through the loop.

8.

What is the output of the following program?

CLS

X = 10

DO

PRINT X

X = X + 1

LOOP UNTIL X > 14

END

a)

10

11

12

13

14

b)

11

12

13

14

c)

11

12

13

14

15

d)

10

11

12

13

14

15

9.

(a)   is a numeric variable that is used as a loop counter in For....Next Loop.

10.

(a)   enable you to execute the same sequence of statements repeatedly until a particular condition is met.

11.

At times, two or more loops are used in a program, where one loop contains another loop within it. This is known as (a)   .

12.

Any loop can be terminated prematurely using the ___________ command.

a)

END

b)

PRINT

c)

EXIT

13.

Which of the following statements is used to transfer the control from one location to another in a program?

a)

GOTO

b)

FOR…NEXT

c)

MOVETO

d)

WHILE…WEND

14.

(a)   , when used, transfer the control to a specified line in the program.

15.

Give an example of a jump statement used in QBASIC:

(a)