Professional Documents
Culture Documents
MS EOT3 Grade 8
MS EOT3 Grade 8
MS EOT3 Grade 8
Grade: 8
Exam Instructions:
● Write your name and your teacher’s name in the box above.
● Read each question carefully before you start to answer it.
● Answer all questions.
● The marks for each question are shown in brackets.
- Use this as a guide as to how much time to spend on each question.
(ii) A function must always return a result (1) whereas a procedure does not (1)
• A function interface must have a data type (1) to signify the type of data that
will be returned / a procedure does not need this (1)
1
2.
3.
2
5.
OUTPUT = C
------------------------------------------------------------------ ---------------------
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
3
6. (2)
Local variable - a variable that is accessed only from within the subprogram in which it
is created.
global variable : a variable that can be accessed from anywhere in the program,
including inside subprograms
7. (2)
(a)
(3)
(b)
8.
(6)