wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

8th 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.

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

a)

input()

b)

print()

c)

int()

d)

string()

8.

Which function is used to convert data to a number:

a)

string()

b)

print()

c)

input()

d)

int()

9.

To create condition we use:

a)

if

b)

while

c)

for

d)

def

10.

find loop:

a)

if

b)

while

c)

def

d)

class

11.

< – means:

a)

more

b)

less

c)

more or equal

d)

less or equal

12.

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!

13.

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

a)

circle()

b)

backward()

c)

begin_fill()

d)

left()

14.

What angle we used to draw star in turtle:

(a)  

15.

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

(a)  

16.

Find out System Software:

a)

Super Idol

b)

Chrome

c)

Windows

d)

Paint

17.

Which one is Hardware?

a)

Photoshop

b)

Driver

c)

CPU

d)

macOS

18.

Which part of IDE catches ERRORS?

a)

Console

b)

Compiler

c)

Code editor

d)

Debugger

19.

In which part of IDE we write code?

a)

Console

b)

Compiler

c)

Code editor

d)

Debugger

20.

Find Software for programming:

a)

Chrome

b)

IDLE

c)

Linux

d)

Notepad