Skip to content
OtisamLMS
Computing

Computing · Quick practice · answer shown after each question

Introduction to Python programming

Question 1 of 10

Question 1 of 10

What does print(10 / 4) display in Python 3?

Question 2 of 10

Question 2 of 10

Write a program that converts a temperature in Celsius to Fahrenheit using F = C × 9 / 5 + 32.

Question 3 of 10

Question 3 of 10

What does print(2 * "ab") display?

Question 4 of 10

Question 4 of 10

len("JHS") returns 3.

Question 5 of 10

Question 5 of 10

To turn the text "8" into a number you use the ___ function.

Question 6 of 10

Question 6 of 10

Which Python statement displays text on the screen?

Question 7 of 10

Question 7 of 10

What will name = "Abena" then print("Hi " + name) display?

Question 8 of 10

Question 8 of 10

Indentation is important in Python.

Question 9 of 10

Question 9 of 10

Lines starting with # are run as instructions.

Question 10 of 10

Question 10 of 10

Which Python function reads text typed by the user?

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