Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

J277 - 2.2 - Understanding Data Types in Programming

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is a data type?

a)

A type of computer hardware

b)

A formal classification of the type of data being stored or manipulated within a program

c)

A programming language

d)

A type of software application

2.

Which of the following is an example of an integer?

a)

3.14

b)

-5

c)

True

d)

Hello

3.

What is the main characteristic of a real (float) data type?

a)

It can only store whole numbers

b)

It can store numbers with decimal places

c)

It can only store text

d)

It can only store True or False values

4.

Which of the following is a Boolean value?

a)

123

b)

False

c)

£

d)

12.5

5.

What does the char data type represent?

a)

A collection of characters

b)

A single character

c)

A whole number

d)

A decimal number

6.

Which of the following is an example of a string?

a)

42

b)

3.14

c)

Hello, World!

d)

True

7.

What does a null value represent?

a)

A large number

b)

A small number

c)

The lack of any value

d)

A collection of numbers

8.

Which of the following operations can be performed on integer data types?

a)

Concatenation

b)

Division

c)

Logical AND

d)

Formatting

9.

Which data type would be most appropriate for storing the value "£"?

a)

Integer

b)

Real

c)

Char

d)

Boolean

10.

If you want to store the text "ninety-four", which data type should you use?

a)

Integer

b)

Real

c)

String

d)

Boolean