wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Unit-9 QB64 statements

Total questions: 18

Worksheet time: 9mins

Name
Class
Date
1.

Which command is used in QB64 to Display a value, message or output on the monitor?

a)

PRINT

b)

LET

c)

INPUT

d)

CLS

2.

Which command is used in QB64 to Display a blank line?

a)

PRINT

b)

LET

c)

INPUT

d)

CLS

3.

Which statement is used to take input from the user during the program execution?

a)

PRINT

b)

LET

c)

INPUT

d)

CLS

4.

Which statement is used to add comments?

a)

PRINT

b)

LET

c)

INPUT

d)

REM

5.

Which statement is used to assigning a value to a variable within a program?

a)

PRINT

b)

LET

c)

INPUT

d)

REM

6.

Select a valid string variable.

a)

HT%$

b)

Nm$

c)

Rl 24$

d)

4Name$

7.

How many types of variables are there?

a)

Four

b)

Two

c)

Three

d)

Seven

8.

Which variable requires a dollar sign at the end ?

a)

Numeric Variable

b)

String Variable

9.

When comma is used with print statement the items get closed to each other leaving no space

a)

True

b)

False

10.

___________ command helps to insert comments that enable us to understand what the program is all about.

a)

rem

b)

print

11.

The ___________ statement in QBasic is used to accept the data item from the user.

a)

print

b)

Input

c)

output

12.

To add values of x and y and store the sum in z

a)

x=y+z

b)

z=x+y

c)

x+y=z

13.

You can have only one INPUT statement in a program.

a)

True

b)

False

14.

Which command is used in QB64 to Display a value, message or output on the monitor?

a)

PRINT

b)

LET

c)

INPUT

d)

CLS

15.

Which command is used in QB64 to Display a blank line?

a)

PRINT

b)

LET

c)

INPUT

d)

CLS

16.

A data value that does not change during the execution of a program is _____.

a)

Variable

b)

Constant

c)

Character

17.

In PRINT command, the message is closed in ______.

a)

Double Quotes

b)

Semicolons

c)

Single Quotes

18.

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

a)

True

b)

False