Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Quiz

Total questions: 11

Worksheet time: 7mins

Name
Class
Date
1.

(a)   (int) is a numeric data type

2.

the value 23.99 is a/an

a)

integer

b)

float

c)

complex

d)

bigint

3.

String is a collection of

a)

integer

b)

float

c)

characters

d)

words

4.

primitive data types are stored in ____

a)

heap

b)

stack

c)

ram

d)

hard disk

5.

To get the letter "o" in the string "Hello", we will use what value for the index?

a)

5

b)

6

c)

3

d)

4

6.

len("Hello World")

Would return ...

a)

11

b)

12

c)

10

d)

13

7.

String is an array

a)

True

b)

False

8.

print("fHello World")

Would give us what?

(a)  

9.

"1" + 1

Would give us ...

a)

2

b)

11

c)

TypeError

d)

"1"1

10.

printing "\n" would be

a)

Carriage Return

b)

Line Feed

c)

Horizontal Tab

d)

Vertical Tab

11.

True + True

(a)