Skip to content
OtisamLMS
Computing

Computing · Quick practice · answer shown after each question

Python: data types, input, output and operators

Question 1 of 10

Question 1 of 10

The value of 17 % 4 in Python is ___.

Question 2 of 10

Question 2 of 10

What does round(3.14159, 2) return?

Question 3 of 10

Question 3 of 10

What does "Computing"[0:3] return?

Question 4 of 10

Question 4 of 10

The value of 2 ** 5 in Python is ___.

Question 5 of 10

Question 5 of 10

Which expression gives True?

Question 6 of 10

Question 6 of 10

What is the value of 2 + 3 * 4 ** 2 in Python?

Question 7 of 10

Question 7 of 10

Write a Python program that inputs the length and width of a rectangle and prints its area and perimeter.

Question 8 of 10

Question 8 of 10

What does print("Ama", "Kofi", sep="-") display?

Question 9 of 10

Question 9 of 10

Which of these is a Python keyword and cannot be used as a variable name?

Question 10 of 10

Question 10 of 10

Explain what type casting is and why it is needed when using input().

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