wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

QBASIC Constants and Variables - Class 6

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Numeric Constants are assigned to -------

a)

Numeric Variables

b)

Numeric Constants

c)

None of the Above

2.

Alphanumeric variables always end with a -------.

a)

Semi - colon (;)

b)

Dollar sign ($)

c)

Hash (#)

3.

Variables always begin with -----------.

a)

Number

b)

Alphabet

c)

Constant

4.

--------- constants are always enclosed in double quotes.

a)

String

b)

Alphanumeric Constants

c)

Both 1 & 2

5.

Comma is not allowed while writing ------- constants.

a)

Numeric

b)

Alphanumeric

c)

None of the above

6.

The maximum length of a variable is ---------.

a)

Up to 100

b)

Up to 12

c)

Up to 13

7.

Data can be divided into two

a)

Constants

b)

Variables

c)

Both 1 & 2

8.

Numeric constants can be divided into ----------

a)

Two

b)

Three

c)

Four

9.

--------- change their values at the time of the execution of the program.

a)

Numeric

b)

Variable

c)

Both 1 & 2

10.

The appropriate variable for "Understanding Information Technology" is

a)

B$

b)

B

c)

None of the above

11.

A45 is a valid numeric variable.

a)

True

b)

False

12.

A+B is not a valid alphanumeric variable.

a)

True

b)

False

13.

Special characters are used in variables.

a)

True

b)

False

14.

Numeric constants are stored in numeric variable.

a)

True

b)

False

15.

0.5495 is a valid numeric constant.

a)

True

b)

False

16.

Decimals are not allowed in numeric constants.

a)

True

b)

False

17.

Special characters must be used while writing variable.

a)

True

b)

False

18.

Comma should be used while writing numeric constant.

a)

True

b)

False

19.

Is B$= WORLD CUP 2007 correct?

a)

Yes

b)

No

20.

Write the appropriate variable for A*B*C

a)

D

b)

D$

c)

None of the above