Font size
Worksheets9th grade CS exam
Total questions: 20
Worksheet time: 40mins
What will be the output?
a = 5
b = 6
print(a)
5
6
11
1
What will be displayed as a result:
a = 4
b = 6
print(a*b)
24
12
6
a*b
What is the value of "a" after the program is executed?
a = 2
if a<3:
print(a+1)
else:
print(a-1)
3
2
1
0
What will be b after running the program?
b = 2
if b > 4:
b = b + 2
4
2
0
нет правильного ответа
What will be c ?
x = 3
c = 0
while x > 1:
c = c +1
x = x -1
3
0
1
2
What will be displayed on the screen?
a = 5
b = 10/2
print(a == b)
True
Nothing
0
False
What is c?
a = 2
b = 5
if a > b:
c = a
else:
c = b
2
5
нет правильного ответа
0
To display messages on the console screen, use the function:
input()
print()
int()
string()
Which function is used to convert data to a number:
string()
print()
input()
int()
To create condition we use:
if
while
for
def
find loop:
if
while
def
class
> – means:
more
less
more or equal
less or equal
< – means:
more
less
more or equal
less or equal
Guess result:
42 + 5
42
47
5
What will be the result?
You are a Rodion! I don't know you!
You are a stranger! I don't know you!
Hello, Kyrylo!
Hello, Rodion!
What will be displayed?
42 + 5
42
Mamkin hatzker!
Rodion
What command we will use to move straight(прямо)?
circle()
backward()
begin_fill()
left()
What command we use to start filling color:
(a)
What angle we used to draw star in turtle:
(a)
Which number we use in loop to draw hexagon in turtle:
(a)
