NEW
Font size
S
M
L
XL
Worksheetspython function
Total questions: 15
Worksheet time: 23mins
Name
Class
Date
1.
What will the output be from the following code?
print("Hello world!\nHello world!")
print("Hello world!\nHello world!")
a)
Hello world! Hello world!
b)
Hello world!
Hello world!
Hello world!
c)
SyntaxError
d)
Hello world!
2.
In programming, what is iteration?
a)
The repetition of steps within a program
b)
The order in which instructions are carried out
c)
A decision point in a program
d)
Testing a program to make sure it works
3.
FOR loops are
a)
loops which run an unknown number of times
b)
loops which run for a specific number of times
c)
the same as if statements
d)
not part of programming
4.
what will this display?/ Экранға қандай жауап шығады?
a)
0,1,2,3,4,5
b)
0,1,2,3,4
c)
1,2,3,4,5
d)
Error
5.
a)
5
4
3
2
1
4
3
2
1
b)
4
3
2
1
0
3
2
1
0
c)
5 4 3 2 1
d)
4 3 2 1 0
6.
a)
5
4
3
2
1
4
3
2
1
b)
4
3
2
1
0
3
2
1
0
c)
5 4 3 2 1
d)
4 3 2 1 0
7.
a)
5
4
3
2
1
4
3
2
1
b)
4
3
2
1
0
3
2
1
0
c)
5 4 3 2 1
d)
4 3 2 1 0
8.
a)
10 8 6 4 2
b)
10
8
6
4
2
8
6
4
2
c)
2 4 6 8 10
d)
10 9 8 7 6 5 4 3 2 1
9.
a)
12 9 6 3 0
b)
0 3 6 9 12
c)
9 6 3 0
d)
0 3 6 9
10.
a)
0 5 10
b)
5 10
c)
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 105 110 115 120 125 130 135 140......etc
d)
12 7 2
11.
a)
12 17 22
b)
5
c)
12
d)
5 10
12.
a)
12 17 22
b)
5
c)
12
d)
5 10
13.
a)
Hello world!
b)
Hello world
c)
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
......(repeated continuously)
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
......(repeated continuously)
d)
Error
14.
a)
Welcome
b)
Try again!
c)
Error
d)
Enter your password
15.
In a Python program, what would be the starting value in the FOR LOOP code?
a)
100
b)
10
c)
5
d)
20
Reset
