wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

9th grade CS exam

Total questions: 20

Worksheet time: 40mins

Name
Class
Date
1.

What will be the output?

a = 5

b = 6

print(a)

a)

5

b)

6

c)

11

d)

1

2.

What will be displayed as a result:

a = 4

b = 6

print(a*b)

a)

24

b)

12

c)

6

d)

a*b

3.

What is the value of "a" after the program is executed?

a = 2

if a<3:

print(a+1)

else:

print(a-1)

a)

3

b)

2

c)

1

d)

0

4.

What will be b after running the program?

b = 2

if b > 4:

b = b + 2

a)

4

b)

2

c)

0

d)

нет правильного ответа

5.

What will be c ?

x = 3

c = 0

while x > 1:

c = c +1

x = x -1

a)

3

b)

0

c)

1

d)

2

6.

What will be displayed on the screen?

a = 5

b = 10/2

print(a == b)

a)

True

b)

Nothing

c)

0

d)

False

7.

What is c?

a = 2

b = 5

if a > b:

c = a

else:

c = b

a)

2

b)

5

c)

нет правильного ответа

d)

0

8.

To display messages on the console screen, use the function:

a)

input()

b)

print()

c)

int()

d)

string()

9.

Which function is used to convert data to a number:

a)

string()

b)

print()

c)

input()

d)

int()

10.

To create condition we use:

a)

if

b)

while

c)

for

d)

def

11.

find loop:

a)

if

b)

while

c)

def

d)

class

12.

> – means:

a)

more

b)

less

c)

more or equal

d)

less or equal

13.

< – means:

a)

more

b)

less

c)

more or equal

d)

less or equal

14.

Guess result:

a)

42 + 5

b)

42

c)

47

d)

5

15.

What will be the result?

a)

You are a Rodion! I don't know you!

b)

You are a stranger! I don't know you!

c)

Hello, Kyrylo!

d)

Hello, Rodion!

16.

What will be displayed?

a)

42 + 5

b)

42

c)

Mamkin hatzker!

d)

Rodion

17.

What command we will use to move straight(прямо)?

a)

circle()

b)

backward()

c)

begin_fill()

d)

left()

18.

What command we use to start filling color:

(a)  

19.

What angle we used to draw star in turtle:

(a)  

20.

Which number we use in loop to draw hexagon in turtle:

(a)