Skip to content
OtisamLMS
Change filters

Senior High School ยท WASSCE style

Computing

Question 1

1In a Python method, self refers to

Hard
Question 2

2An object is an instance of a class.

Easy
Question 3

3Attributes of an object are

Medium
Question 4

4The Python constructor method is named ___.

Medium
Question 5

5What is printed? class Box: def __init__(self, w): self.w = w b = Box(5) print(b.w)

Medium
Question 6

6Encapsulation means

Hard
Question 7

7Which line creates an object of class Pupil?

Medium
Question 8

8Overriding a method means

Hard
Question 9

9Which line defines a class Car that inherits from Vehicle?

Hard
Question 10

10An object is

Easy

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