wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Data Structures

Total questions: 15

Worksheet time: 17mins

Name
Class
Date
1.

Which data type is it?

a)

string

1.

represents text

b)

integer

2.

represents a whole number

c)

float

3.

represents a number with a decimal point

2.

5

a)

it's a string

b)

it's a float

c)

it's an integer

3.

1.45

a)

it's a string

b)

it's a float

c)

it's an integer

4.

"Hello"

a)

it's a string

b)

it's a float

c)

it's an integer

5.

"10"

a)

it's a string

b)

it's a float

c)

it's an integer

6.

What is the correct way to output "Hello, World!" in Python?

a)

`echo "Hello, World!"`

b)

`print("Hello, World!")`

c)

`printf("Hello, World!")`

d)

`System.out.println("Hello, World!")`

7.

What will be displayed on the screen?

(a)  

8.

What will be displayed on the screen?

a)

5

b)

6

c)

x

d)

Error

9.

What will be displayed on the screen?

a)

my_number

b)

1

c)

your_number

d)

ERROR, there's no your_bumber

10.

What will be displayed on the screen?

a)

Kitty

b)

Claudia

c)

name

d)

ERROR

11.

What will happen when we run this program?

4 lines
12.

What data type is this?

Categorize the following

"Hello"

"World"
"Schema"
"Test"
"Example"
1
42
-7
1000
-15
3
3.14
2.71
1.618
0.577
9.81
6.626
String
Integer
Float
13.
Which Python command is used to output information to the screen?
a)
read
b)
output
c)
print
d)
display
14.

What sign do we need to use to declare a variable?

a)

=

b)

"

c)

'

d)

@

15.

Create a variable name. Store the name "Jenny" in it.

4 lines