wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Variables and Data Types

Total questions: 21

Worksheet time: 18mins

Name
Class
Date
1.
Which data type is used to store:
100
a)
Integer
b)

Float

c)
Boolean
d)
String
2.
Which data type is used to store:
99.10
a)
Integer
b)

Float

c)
String
d)
Boolean
3.
Which data type is used to store:
"Miss Read"
a)
Integer
b)

Float

c)
Boolean
d)
String
4.
Which data type is used to store:
TRUE
a)
Boolean
b)

Float

c)
String
d)
Integer
5.
Which data type is used to store:
"D"
a)
Character
b)
String
c)
Integer
d)

Float

6.
This data type is used to store whole numbers
a)
Integer
b)

Float

c)
Boolean
d)
String
7.
This data type is used to store non-whole numbers.
a)
Integer
b)

Float

c)
Boolean
d)
String
8.
This data type is used to store two values: TRUE or FALSE
a)
Boolean
b)
String
c)
Integer
d)

Float

9.
This data type is used to store a mixture of letters and numbers and symbols.
a)
String
b)
Character
c)
Boolean
d)
Integer
10.
This data type is used to store a single character, number or symbol.
a)
Character
b)
Boolean
c)
String
d)

Float

11.

What is the name of this variable?

Year = input("Enter your date of birth")

a)

Year

b)

Integer

12.

What is the name of this variable?

Response = input("Please enter a string")

a)

String

b)

Response

13.

What is the data type of this variable?

number = int(input("please enter a number"))

a)

number

b)

Integer

14.

What is the data type of this variable?

symbol = input("Please enter a character")

a)

symbol

b)

Character

15.
What is a variable?
a)
A storage location with a unique name and a data type.
b)
A random area to store things in.
c)
Something that changes
d)
Something that can only store numbers
16.

What does this symbol mean?

<

a)

Less than

b)

Greater than

c)

Equal to

d)

Not Equal to

17.

What does this symbol mean?

>

a)

Less than

b)

Greater than

c)

Equal to

d)

Not Equal to

18.

What does this symbol mean?

==

a)

Less than

b)

Greater than

c)

Equal to

d)

Not Equal to

19.

What does this symbol mean?

!=

a)

Less than

b)

Greater than

c)

Equal to

d)

Not Equal to

20.

Which of these symbols means less than or equal to?

a)

<=

b)

< or =

c)

=<

21.

Which of these symbols means greater than or equal to?

a)

>=

b)

> or =

c)

=>