Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Programming Fundamentals

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

The following is not true about variable names

a)

They must be descriptive

b)

They must be in capital letters

c)

They can’t start with numbers or contain spaces

d)

They point to memory locations

2.

In an assignment operation, this appears on the right hand side

a)

Label for a variable that is destination of data

b)

Multiple variables that are destinations for data

c)

Source variables or operations

d)

The assignment operator

3.

The following is not a valid constant

a)

SPACE

b)

PI

c)

UserName

d)

WORDLIMIT

4.

Which of the following is a valid keyword for output?

a)

PRINT

b)

SHOW

c)

DISPLAY

d)

INPUT

5.

Consider the following expression: a = b. This means

a)

a will always be equal to b

b)

b is being renamed into a

c)

The value of memory location a gets copied into memory location b

d)

The value of memory location b gets copied into memory location a

6.

Which of the following is not a valid data type?

a)

Real

b)

String

c)

Character

d)

Fraction

7.

Quotation marks around a variable’s identifier imply

a)

It is an integer

b)

It is a string

c)

It is a Boolean

d)

It is a real

8.

The multiplication table is best displayed using this data type

a)

Boolean

b)

Character

c)

Integer

d)

Real

9.

This variable type can only have True or False values

a)

Boolean

b)

Integer

c)

String

d)

Character

10.

Casting refers to:

a)

Boolean algebra

b)

Rounding of reals

c)

Converting between variable data types

d)

Printing out of the program’s results