Introduction to Algorithms (OCR A-Level Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What is an algorithm?
What is an algorithm?
A step-by-step set of instructions
What is the purpose of algorithm design?
What is the purpose of algorithm design?
To solve a problem efficiently
What is the first step in the algorithm design approach?
What is the first step in the algorithm design approach?
Break the problem into smaller parts
In a flowchart, which symbol represents the start or end?
In a flowchart, which symbol represents the start or end?
Oval
Which flowchart symbol is used for decisions such as IF statements?
Which flowchart symbol is used for decisions such as IF statements?
Diamond
What does a rectangle represent in a flowchart?
What does a rectangle represent in a flowchart?
A process such as calculations
What is pseudocode?
What is pseudocode?
A high-level, human-readable description
What two factors are considered when analysing algorithm efficiency?
What two factors are considered when analysing algorithm efficiency?
Time (speed) and space (memory)
What does algorithm correctness ensure?
What does algorithm correctness ensure?
Expected result for all valid inputs
What is iteration in algorithms?
What is iteration in algorithms?
Repeating steps using loops
What is a common mistake when writing conditions?
What is a common mistake when writing conditions?
Using = instead of == in comparisons
What are off-by-one errors in loops?
What are off-by-one errors in loops?
Iterating too many or too few times
