NTP26W0 Practice Test 2 - 2025
NTP26W0 Practice Test 2 - 2025
EXAMINER/S : MR JA OKUTHE
MODERATOR : DR O OKI
INSTRUCTIONS
• Answer ALL questions.
REQUIREMENTS
ANNEXURES/ADDENDA : NONE
MARKS : 50
Pa ge 1|5
SECTION A (MULTIPLE CHOICE) [10 MARKS]
a. 1
b. 2
c. 3
d. None
1.3 In the animals dictionary below, dog is an example of a _______.
a. Value
b. Key
c. Index
d. Element
1.4 Which of the following statements best describes immutable data?
a. They cannot be modified at run time.
b. They can be freely updated at any time.
c. They can be easily transferred between a function and the main program.
d. They are variables linked to built-in functions.
1.5 What will be the output when the following code is executed?
a. ‘boss’
b. 226578543
c. ‘dave’
d. 334125798
1.10 Refer to the exhibit. The entity win is most likely a _________.
a. Function
b. Module
c. Package
d. Keyword
2.2 In Python, bad data fed to the code may cause a bug, resulting in undesirable code
behaviour.
2.5 In the Python code environment, which can be considered a pyramid with several layers,
the hardware layer includes the operating system.
Pa ge 3|5
SECTION C (SHORT ANSWER QUESTIONS) [35 MARKS]
3.1 The power of a Python function relies on its ability to accept data provided by the user. A
typical Python program includes parameters and arguments as variables.
a) List any two differences between parameters and arguments (4)
b) Consider the following Python code.
3.3 Modules and packages are used in Python to enhance the structure of large and complex
programs.
a) List and discuss any two differences between modules and packages. (2)
b) Consider the following Python code.
(2)
b)
(2)
c)
(2)
Pa ge 5|5