Skip to content
OtisamLMS
Computing

Computing · Quick practice · answer shown after each question

Programming in Python

Question 1 of 10

Question 1 of 10

What does print(7 // 2) display in Python?

Question 2 of 10

Question 2 of 10

Which data type stores True or False?

Question 3 of 10

Question 3 of 10

What does print(7 % 3) output?

Question 4 of 10

Question 4 of 10

What is the value of x after: x = 10; x += 5?

Question 5 of 10

Question 5 of 10

What is the value of sum(range(1, 5))?

Question 6 of 10

Question 6 of 10

What is len([1, [2, 3], 4])?

Question 7 of 10

Question 7 of 10

What is printed by: print("ghana"[1:4])

Question 8 of 10

Question 8 of 10

Which Python statement displays text on the screen?

Question 9 of 10

Question 9 of 10

What does print("Hi" * 3) display?

Question 10 of 10

Question 10 of 10

What does int("7") + 3 give?

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