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

Python strings can be joined with the + operator.

Question 2 of 10

Question 2 of 10

Which expression gives True?

Question 3 of 10

Question 3 of 10

len("Python") returns ___.

Question 4 of 10

Question 4 of 10

Write a program that inputs a pupil's first name and surname and prints their initials in capital letters.

Question 5 of 10

Question 5 of 10

What is the value of 7 / 2 in Python 3?

Question 6 of 10

Question 6 of 10

What does type(3.0) return in Python?

Question 7 of 10

Question 7 of 10

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

Question 8 of 10

Question 8 of 10

In Python, ** is the power operator.

Question 9 of 10

Question 9 of 10

"Ghana".lower() returns ___.

Question 10 of 10

Question 10 of 10

Which operator gives the remainder of a division?

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