wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

7th grade CS exam

Total questions: 20

Worksheet time: 43mins

Name
Class
Date
1.

What will be the output?

a = 3

b = 4

print(a)

a)

4

b)

3

c)

7

d)

1

2.

What will be displayed as a result:

a = 9

b = 2

print(a//b)

a)

3

b)

18

c)

4

d)

11

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 = 7

if b > 9:

b = b - 3

a)

4

b)

7

c)

0

d)

6

5.

What will be c ?

x = 4

c = 0

while x > 1:

c = c + 1

x = x - 1

a)

7

b)

0

c)

1

d)

3

6.

What will be displayed on the screen?

b = 10%3

print(b)

a)

4

b)

3

c)

0

d)

1

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)

for

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)

forward()

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 Square in turtle:

(a)  

16.

Which one is User Interface?

a)

Driver

b)

MIUI

c)

Linux

d)

IDLE

17.

Which one is Operating System?

a)

Linux

b)

Java

c)

One UI

d)

Tynker

18.

Driver is a:

a)

developing of computer softwares

b)

operating system

c)

programming language

d)

code that allows you to cowork with Hardware

19.

Find High-level programming language:

a)

Rust

b)

Assembler

c)

Python

d)

Driver

20.

Fill the blank:

(a)   -level programming language is easy for computers, but hard to study for humans