WorksheetsRevision Week 4
Total questions: 10
Worksheet time: 11mins
What was the first generation of programming languages?
High-level languages
Assembly language
Machine language
Object-oriented languages
What is the purpose of a compiler?
To translate high-level code into machine code
To manage hardware devices
To get input
To store program data
What is a syntax error?
An error due to incorrect syntax in the program
A logical error that causes incorrect results
A runtime error
An error in program logic
What is an algorithm?
A programming language
A hardware component
A step-by-step procedure to solve a problem
A type of software
Determine the process for the scenario.
A university wants to develop a program that calculates a student's final grade based on three test scores. The final grade is determined by the average of the three scores.
Determine the output for this scenario:
A health clinic wants a program to calculate a person's BMI and determine their health category.
Write a Pseudo Code for this question.
Write a pseudo code to calculate and display the volume of a cylinder. Use the formula:
Volume=π×radius2×height
where π = 3.14159,
Draw a flowchart for this question.
Draw a flowchart to calculate and display the volume of a cylinder. Use the formula:
Volume=π×radius2×height
where π = 3.14159,

Which of the following is a characteristic of high-level programming languages?
They are difficult to read and write
They use natural language elements
They are machine-dependent
They require extensive knowledge of hardware
What does debugging refer to in programming?
The process of writing code
The process of finding and fixing errors in code
The process of compiling code
The process of optimizing code for speed
