Skip to content
OtisamLMS
Change filters

Senior High School ยท WASSCE style

Computing

Question 1

1What is printed? def f(x): return x * x print(f(f(2)))

Hard
Question 2

2A variable that exists only inside a function is a ___ variable.

Easy
Question 3

3A recursive function without a base case may never stop.

Hard
Question 4

4A procedure always returns a value.

Medium
Question 5

5The values passed into a function when it is called are called ___.

Medium
Question 6

6To change a global variable inside a function, Python uses the keyword

Hard
Question 7

7A procedure is a subroutine that

Medium
Question 8

8What is printed? def add(a, b=2): return a + b print(add(5))

Hard
Question 9

9A recursive function must have a

Hard
Question 10

10A function that does not use return gives back

Hard

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