Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Variables and Data Types

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

1. What are variables?

a)

containers for storing data

b)

things that can never change

c)

a piece of characters

2.

2. IDLE means?

a)

International Daily Learning Environment

b)

Integrated Development and Learning Environment

c)

Instant Development and Learning Entry

3.

3. The data type for strings is denoted as _______

a)

int()

b)

str()

c)

float()

4.

4. The data type for whole numbers is denoted as _______

a)

int()

b)

str()

c)

float()

5.

5. Whole numbers are also known as __________.

a)

integers

b)

strings

c)

float

6.

6. The data type for fractional numbers or decimals is denoted as ______________.

a)

int()

b)

str()

c)

float()

7.

7. Which is the correct command for assigning values to a variable?

a)

variable = "your name"

b)

variable * 22

c)

variable is equal to "this"

8.

8. Which of the following is a variable with a float data type?

a)

variable = 22.47

b)

variable = float_type

c)

variable = 12

9.

9. How do you perform an addition in python?

a)

2 plus 2

b)

2 * 2

c)

2 + 2

10.

10. Which of these divisions will print only the remainder in python?

a)

8 % 3

b)

8 / 3

c)

8 divided by 3