wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Data Type

Total questions: 20

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.
This data type is used to store a mixture of letters and numbers and symbols.
a)
String
b)
Character
c)
Boolean
d)
Integer
6.

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

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

Which of these variables would use a string data type?

a)

password

b)

passwordSuccess (successful login)

c)

passwordLength

13.

What type of data would you store your age in years?

a)

Real

b)

Integer

c)

String

d)

Boolean

14.

What data type would you store a vehicle's registration plate?

a)

Real

b)

String

c)

Boolean

d)

Integer

15.

What type of data would you use to store whether someone wanted to sign up for promotions or not?

a)

String

b)

Boolean

c)

Real

d)

Integer

16.

Which value is a String?

a)

64

b)

"cat"

c)

True

d)

0.5

17.

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.

18.
This data type is used to store a mixture of letters and numbers and symbols.
a)
String
b)
Character
c)
Boolean
d)
Integer
19.

Which data type is used to store:

"&"

a)

Character

b)

String

c)

Integer

d)

Real

20.

What data type would you use to record someone's height so that it could be used in a calculation?

a)

Text

b)

String

c)

Numeric

d)

Boolean