wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python datatypes en errors

Total questions: 11

Worksheet time: 8mins

Name
Class
Date
1.

Geef het datatype aan:

True

a)

str

b)

int

c)

float

d)

bool

2.

Welk datatype is dit?

0.0

a)

str

b)

int

c)

float

d)

bool

3.

We maken een loop van 0 tot 10. Vul aan:

for x in (a)   (10):

4.

Welke output geeft deze code?

print(Hello world!)

a)

Hello world!

b)

Niets

c)

SyntaxError

d)

InputError

5.

Welke output geeft deze code?

print("ha" * 4)

a)

hahahaha

b)

hahaha

c)

SyntaxError

d)

TypeError

6.

Wat is de output van deze code?

print("hallo" + 1)

a)

hallo1

b)

hallo 1

c)

SyntaxError

d)

TypeError

7.

Welke output geeft deze code?

a)

hallo daar!

b)

Niets

c)

SyntaxError

d)

TypeError

8.

Wat print deze code?

print(1 == True)

a)

True

b)

1

c)

SyntaxError

d)

TypeError

9.

Wat print deze code?

print(int("Hallo"))

a)

ValueError

b)

TypeError

c)

SyntaxError

d)

5

10.

Wat print deze code?

a)

hallo

b)

TypeError

c)

SyntaxError

d)

IndentationError

11.

Wat wordt hier geprint?

print(int(1 + 2 < 7) + 10 / 2)

a)

True

b)

False

c)

10.0

d)

6.0