Skip to content
OtisamLMS
Computing

Computing · Quick practice · answer shown after each question

Control structures: sequence, selection and iteration

Question 1 of 10

Question 1 of 10

Write a Python loop that prints the numbers from 1 to 10.

Question 2 of 10

Question 2 of 10

Repeating instructions is called

Question 3 of 10

Question 3 of 10

An infinite loop stops by itself after ten turns.

Question 4 of 10

Question 4 of 10

Which condition is true when x = 7?

Question 5 of 10

Question 5 of 10

What is the value of total after: total = 0; for n in range(1, 4): total = total + n

Question 6 of 10

Question 6 of 10

Sequence means the instructions are carried out in order.

Question 7 of 10

Question 7 of 10

for i in range(3) runs the loop ___ times.

Question 8 of 10

Question 8 of 10

A loop placed inside another loop is a ___ loop.

Question 9 of 10

Question 9 of 10

In the flowchart of a while loop, the condition is shown in a

Question 10 of 10

Question 10 of 10

In the code: if score >= 50: print("Pass") else: print("Fail"), what is printed when score is 50?

Questions written by OtisamLMS in the style of the BECE. They are not WAEC past questions.