Skip to content
OtisamLMS
Change filters

Senior High School · WASSCE style

Computing

Question 1

1Which loop prints every key and value in d?

Hard
Question 2

2What does [2, 4, 6][-1] return?

Medium
Question 3

3Given scores = {"Ama": 78, "Kofi": 65}, what is scores["Kofi"]?

Medium
Question 4

4split() turns a string into a list.

Medium
Question 5

5A list that cannot be changed is called a ___.

Hard
Question 6

6Which statement adds a new entry to a dictionary d?

Hard
Question 7

7The list method that removes and returns the last item is ___.

Medium
Question 8

8A Python structure that stores key–value pairs is a ___.

Easy
Question 9

9What does [10, 20, 30, 40][1:3] return?

Hard
Question 10

10What does "banana".count("a") return?

Medium

Demo questions written by Otisam in the style of the WASSCE. They are not WAEC past questions.