wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Data type

Total questions: 17

Worksheet time: 10mins

Name
Class
Date
1.

Which data type is used to store:

100

a)

Integer

b)

Double

c)

Boolean

d)

String

2.

Which data type is used to store:

TRUE

a)

Boolean

b)

Double

c)

String

d)

Integer

3.
Which data type is used to store:
"D"
a)
Character
b)
String
c)
Integer
d)
Double
4.
This data type is used to store whole numbers
a)
Integer
b)
Double
c)
Boolean
d)
String
5.

What is a variable?

a)

A storage location of memory which can change

b)

A random area to store things in.

c)

Something that changes

d)

Something that can only store numbers

6.
What data type would be best used to record the number of people at a party?
a)
Integer
b)
Real
c)
String
d)
Boolean
7.
Integers cannot store negative numbers.
a)
False
b)
True
8.
What data type would be best used to record an email address?
a)
String
b)
Integer
c)
Real
d)
Character
9.
What data type would be the answer to the expression x < 5?
a)
Boolean
b)
Character
c)
Real
d)
String
10.

Which value is a String?

a)

64

b)

"cat"

c)

True

d)

0.5

11.

What is an Integer?

a)

A data type that contains whole numbers. eg: 3, 45, 124

b)

Numbers with decimal point. eg: 0.5, 2.45, 56.04

c)

Group of characters between quotation marks. eg: "dog"

d)

Data type that can only be True or False.

12.

Which data type is used to store:

"&"

a)

Character

b)

String

c)

Integer

d)

Real

13.

A variable is a named value that can be changed in the program.

a)

False

b)

True

14.

What is a Float?

a)

A data type that contains whole numbers. eg: 3, 45, 124

b)

Numbers with decimal point. eg: 0.5, 2.45, 56.04

c)

Group of characters between quotation marks. eg: "dog"

d)

Data type that can only be True or False.

15.

What is a Constant?

a)

A storage location of memory which does not change

b)

A random area to store things in.

c)

Something that changes

d)

Something that can only store numbers

16.

What is the stat type returned for this line of code: type(100/4)

a)

Boolean

b)

string

c)

integer

d)

float

17.

What is the stat type returned for this line of code: type(100/3)

a)

Boolean

b)

string

c)

integer

d)

float