Skip to content
OtisamLMS
Computing

Computing · Quick practice · answer shown after each question

Variables, data types and operators

Question 1 of 10

Question 1 of 10

State the result of each Python expression and explain: (a) 9 + 4 * 2 (b) 15 // 4 (c) 15 % 4.

Question 2 of 10

Question 2 of 10

Give three rules for naming variables in Python.

Question 3 of 10

Question 3 of 10

Which data type is best for storing whether a pupil is present or absent?

Question 4 of 10

Question 4 of 10

The value of x after x = 4 and x = x * 2 is ___.

Question 5 of 10

Question 5 of 10

Write Python instructions to store a pupil's name, age and whether they are a prefect, then print the name.

Question 6 of 10

Question 6 of 10

In Python, 10 % 3 gives ___.

Question 7 of 10

Question 7 of 10

A string is

Question 8 of 10

Question 8 of 10

A data type that holds only True or False is called ___.

Question 9 of 10

Question 9 of 10

"123" in quotation marks is stored as a string in Python.

Question 10 of 10

Question 10 of 10

A variable's value can change while a program runs.

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