wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

informatica

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Python is a:

a)

Set of editing tools

b)

Programming language

c)

Development environment

d)

all answers are correct

2.

Which of these statements is true?

a)

Python 1.7 is the most widely used version

b)

all answers are correct

c)

Python code must be always compiled

d)

CPython is an implementation of Python

3.

Fill in the blanks to print "Hi".

a)

>>> print ("Hi")

b)

>>> cout ("Hi")

c)

cout<< (Hi);

d)

print

4.

Fill in the blank to output "ni ni ni".

a)

>>> print ('ni ni ni'

b)

>>> print "ni ni ni"

c)

>>> print ('ni ni ni')

d)

>>> print ('ni ni ni'):

5.

What does this code output?

>>> 1 + 2 + 3

a)

5

b)

4

c)

7

d)

6

6.

Which option is output by this code?

>>> (4 + 8) / 2

a)

6.0

b)

8

c)

6

d)

8.0

7.

Fill in the blank to make this code correct.

>>> ( _5 - 1) * 3

-18

a)

-

b)

+

c)

:

d)

;

8.

Drag and drop the answer that will cause a ZeroDivisionError.

>>> (17 + 94) / (-5 +______ )

a)

-5

b)

0

c)

5

d)

2

9.

Which of these will not be stored as a float?

a)

2.0

b)

2/4

c)

7

d)

7.0

10.

Fill in the blank with the output of this code.

>>> 1 + 2 + 3 + 4.0 + 5

a)

15,5

b)

15.0

c)

14.9

d)

15.1