wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Data types and operators

Total questions: 39

Worksheet time: 19mins

Name
Class
Date
1.
Arithmetic Operators - 
What is + ?
a)
Addition
b)
Subtraction
c)
Multiplication
d)
Division
2.
Arithmetic Operator
What is a - ?
a)
Addition
b)
Subtraction
c)
Multiplication
Multiplication
d)
Modulo
3.
Arithmetic Operator
What is a * ?
a)
Addition
b)
Subtraction
c)
Multiplication
d)
Modulo
4.
Arithmetic Operators
What is a / ? 
a)
Addition
b)
Subtraction
c)
Division
d)
Modulo
5.
Arithmetic Operators
What is a % ?
a)
Multiplication
b)
Division
c)
Modulo
d)
Increment
6.
Stores whole numbers only
a)
INTEGER
b)
REAL (Float)
c)
STRING
d)
CHARACTER
7.
Stores decimal numbers
a)
INTEGER
b)
REAL (Float)
c)
STRING
d)
CHARACTER
8.
Stores single characters
a)
INTEGER
b)
REAL (Float)
c)
STRING
d)
CHARACTER
9.

Stores text incased with " "

a)
INTEGER
b)
REAL (Float)
c)
STRING
d)
CHARACTER
10.
Stores True or False
a)
INTEGER
b)
REAL (Float)
c)
STRING
d)
BOOLEAN
11.
What operators is this ==
a)
not equal to 
b)

equal to (compares if two items are the same)

c)
Greater than 
d)
Greater than or equal to 
12.
What operators is this !=
a)
not equal to 
b)
equal to
c)
Greater than 
d)
Greater than or equal to 
13.
What operators is this >
a)
Less than
b)
Less than or equal to
c)
Greater than 
d)
Greater than or equal to 
14.
What operators is this >=
a)
Less than
b)
Less than or equal to
c)
Greater than 
d)
Greater than or equal to 
15.
What operators is this <=
a)
Less than
b)
Less than or equal to
c)
Greater than 
d)
Greater than or equal to 
16.
What data type would this be "Hello Word!"
a)
Data
b)
String
c)
Numeric
d)
Float
17.
What data type would hold numbers with a decimal point
a)
Data
b)
String
c)
Numeric
d)
Float
18.

What data type would this be 555.78

a)
Data
b)
String
c)
Numeric
d)
Float
19.

What data type would this be 5

a)
Data
b)
Integer
c)
Numeric
d)
Float
20.

This operator compares values, and will only return true if the two values are equal to each other.

a)

&& (and)

b)

|| (or)

c)

!= (not equal)

d)

= = (equal to)

21.

This programming concept allows programmers to create a named identifier that stores a value which can change when the program is running?

a)

Control Strucutures

b)

Variables

c)

Constant

d)

Logic Operators

22.

What is the comparison operator symbol for equal to?

(a)  

23.

Match the following comparison operators with their purpose

a)

>

1.

Greater than

b)

<=

2.

Less than or equal to

c)

==

3.

Equal to

d)

!=

4.

Not equal to

e)

<

5.

Less than

24.

Match the following arithmetic operators with their purpose

a)

%

1.

Modulus (remainder)

b)

//

2.

DIV - Integer division

c)

**

3.

Exponentiation - to the power of

d)

/

4.

Divide - Will return a float if needed

e)

*

5.

Multiplication

25.

7 > 4

a)

True

b)

False

26.

7 >= 7

a)

True

b)

False

27.

7 != 7

a)

True

b)

False

28.

(40 < 60) or (40 > 60)

a)

True

b)

False

29.

(40 < 60) and (40 > 60)

a)

True

b)

False

30.

room = "basic"

if room !="basic" and room != "premium":

a)

True

b)

False

31.

Are you confident with data types (String, integer, float, Boolean)

a)

Yes

b)

No

32.
Variables cannot be changed.
a)
False
b)
True
33.
Constants cannot be changed.
a)
True
b)
False
34.
Variable names can include spaces.
a)
False
b)
True
35.

What does casting do?

a)

Changes a data type

b)

Magic

c)

Joins strings together

d)

Raises a number to a power

36.

What does concatenation do (represented with the +)?

a)

Changes a data type

b)

Magic

c)

Joins strings together

d)

Raises a number to a power

37.

What is 4**2?

(a)  

38.

What is 60 MOD 7?

a)

4

b)

8

c)

12

d)

3

39.

What is 49 DIV 8?

a)

6

b)

1

c)

12

d)

5