Skip to content
OtisamLMS
Change filters

Senior High School ยท WASSCE style

Computing

Question 1

1An exception in Python is

Medium
Question 2

2Data in variables is kept after the program closes.

Easy
Question 3

3Why should a file be closed after use?

Medium
Question 4

4The finally block in a try statement

Hard
Question 5

5Mode "w" adds data to the end of an existing file.

Medium
Question 6

6Accessing my_list[10] when the list has 3 items raises an

Hard
Question 7

7int("abc") raises a

Hard
Question 8

8Opening a file with mode "a"

Medium
Question 9

9What does readline() return?

Medium
Question 10

10Which method writes text to an open file?

Medium

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