Algorithms & Control Structures is one of 10 topics in the Grade 12 Information Technology CAPS syllabus, covered across 3 lessons on Study Vault. Below are real practice questions from this topic with full worked answers.
Sample practice questions
Easy
1. Which of these best defines an algorithm?
A precise, step-by-step set of instructions designed to solve a specific problem given some input, producing a defined output
A specific programming language used to write software
A type of computer hardware component
A file format used for storing images
Answer: A precise, step-by-step set of instructions designed to solve a specific problem given some input, producing a defined output — An algorithm is a precise, step-by-step set of instructions that solves a specific problem, taking input and producing a defined output.
Easy
2. In a flowchart, which shape typically represents a decision point with a yes/no or true/false outcome?
A diamond
An oval
A rectangle
A parallelogram
Answer: A diamond — A diamond shape in a flowchart represents a decision point, where the flow branches based on a true/false or yes/no outcome.
Medium
3. Name the property of a good algorithm meaning it must eventually terminate after a limited number of steps, rather than continuing forever.
Answer: finite — A good algorithm must be finite, meaning it eventually terminates after a limited number of steps rather than running forever.