Requirements for this paper:
Multi choice cards: Non-programmable calculator: Open book examination
Graphic paper: Laptop: Scrap paper x
TOETS Semester Test GRAAD: BSc IT Verlengde
TEST DEGREE: program/ Extended
program
VAKKODE: DUUR: 2 uur
ITSP111
SUBJECT CODE: DURATION: 2 hours
VAK: Inleiding tot Probleemoplossing MAKS:
SUBJECT: MAX: 75
Introduction to Problem solving
EKSAMINATOR(E): DATUM /
EXAMINER(S):
Mr Chuku Taole DATE:
03/05/2022
MODERATOR: Me M Zeeman
Instructions/Instruksies
ANSWER ALL QUESTIONS / BEANTWOORD AL DIE VRAE
Question /Vraag 1 [23]
1. What does the “top down approach” in procedure driven program design methodology consist
of? (3)
Outline the general solution
Break down into detailed steps
Code into specific language
2. What is an algorithm? (2)
An algorithm is a list of steps involved in accomplishing a task. In programming terms, it is a set of detailed,
unambiguous and ordered instructions developed to describe the processes necessary to produce the
desired output from a given input.
3. Name three rules that an algorithm must adhere to. (3)
Be clear & precise
Always give correct solution
Eventually end
ITSP111: Paper / Vraestel 1 | Assessment test/Assesseringstoets | Extended full-time/Verleng voltyds 1/5
, 4. Name four (4) elementary data types and give an example of each. (4)
Integer (half): 654 (half)
Real (half): 18.76 (half)
Character (half): ‘A’ (half)
Boolean (half): true or false (half)
5. List the six (6) basic computer operations in the correct order. (6)
Receive information
Give output
Perform arithmetic
Assign values to variables
Compare values
Repeat a group of instructions
6. Why is it important to give variables meaningful names? Give an example of one. (2)
Names should be meaningful to make it easier for humans to maintain programs and
readability. Instead of using xx to represent a number, we can use intNumber.
7. Name the three components of defining a problem. (3)
Input, Process and Output
Question /Vraag 2 [22]
1. Study the following algorithm. It has been designed to calculate the bonus amount that an
employee will earn for hours worked. A worker receives a bonus of 5% if the total number of
hours worked in two days exceeds the value of 10. Calculate and display the bonus amount.
1. pay_per_hour R50.00
2. 1stDay 6
3. day2 7 hours
4. total hours 1stDay + day2
5. IF (total hours > 10)
Bonus 5% * (total hours * pay)
DISPLAY “Bonus”
ENDIF
The statements contain errors. Rewrite each statement correctly without errors. (7)
1. pay_per_hour R50.00 No R character
2. 1stDay 6
ITSP111: Paper / Vraestel 1 | Assessment test/Assesseringstoets | Extended full-time/Verleng voltyds 2/5
Multi choice cards: Non-programmable calculator: Open book examination
Graphic paper: Laptop: Scrap paper x
TOETS Semester Test GRAAD: BSc IT Verlengde
TEST DEGREE: program/ Extended
program
VAKKODE: DUUR: 2 uur
ITSP111
SUBJECT CODE: DURATION: 2 hours
VAK: Inleiding tot Probleemoplossing MAKS:
SUBJECT: MAX: 75
Introduction to Problem solving
EKSAMINATOR(E): DATUM /
EXAMINER(S):
Mr Chuku Taole DATE:
03/05/2022
MODERATOR: Me M Zeeman
Instructions/Instruksies
ANSWER ALL QUESTIONS / BEANTWOORD AL DIE VRAE
Question /Vraag 1 [23]
1. What does the “top down approach” in procedure driven program design methodology consist
of? (3)
Outline the general solution
Break down into detailed steps
Code into specific language
2. What is an algorithm? (2)
An algorithm is a list of steps involved in accomplishing a task. In programming terms, it is a set of detailed,
unambiguous and ordered instructions developed to describe the processes necessary to produce the
desired output from a given input.
3. Name three rules that an algorithm must adhere to. (3)
Be clear & precise
Always give correct solution
Eventually end
ITSP111: Paper / Vraestel 1 | Assessment test/Assesseringstoets | Extended full-time/Verleng voltyds 1/5
, 4. Name four (4) elementary data types and give an example of each. (4)
Integer (half): 654 (half)
Real (half): 18.76 (half)
Character (half): ‘A’ (half)
Boolean (half): true or false (half)
5. List the six (6) basic computer operations in the correct order. (6)
Receive information
Give output
Perform arithmetic
Assign values to variables
Compare values
Repeat a group of instructions
6. Why is it important to give variables meaningful names? Give an example of one. (2)
Names should be meaningful to make it easier for humans to maintain programs and
readability. Instead of using xx to represent a number, we can use intNumber.
7. Name the three components of defining a problem. (3)
Input, Process and Output
Question /Vraag 2 [22]
1. Study the following algorithm. It has been designed to calculate the bonus amount that an
employee will earn for hours worked. A worker receives a bonus of 5% if the total number of
hours worked in two days exceeds the value of 10. Calculate and display the bonus amount.
1. pay_per_hour R50.00
2. 1stDay 6
3. day2 7 hours
4. total hours 1stDay + day2
5. IF (total hours > 10)
Bonus 5% * (total hours * pay)
DISPLAY “Bonus”
ENDIF
The statements contain errors. Rewrite each statement correctly without errors. (7)
1. pay_per_hour R50.00 No R character
2. 1stDay 6
ITSP111: Paper / Vraestel 1 | Assessment test/Assesseringstoets | Extended full-time/Verleng voltyds 2/5