Representing Algorithms (AQA GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
10 questions from this quiz
ShowHide
Practise the questions
10 questions from this quiz
What is the first thing you need to do when given an algorithm?
What is the first thing you need to do when given an algorithm?
Figure out what it's supposed to do
When does visual inspection work well for understanding an algorithm?
When does visual inspection work well for understanding an algorithm?
When it follows a familiar pattern
What tool should you use when visual inspection of an algorithm becomes too difficult?
What tool should you use when visual inspection of an algorithm becomes too difficult?
A trace table
Which of the following does a trace table NOT record?
Which of the following does a trace table NOT record?
The programmer's name
What do trace tables help you understand?
What do trace tables help you understand?
Both individual lines and overall purpose
In the example, StockLevel is 8 and ReorderLevel is 3. What is the output?
In the example, StockLevel is 8 and ReorderLevel is 3. What is the output?
'Stock not ordered'
What is the purpose of the stock management algorithm?
What is the purpose of the stock management algorithm?
To determine when stock needs reordering
What happens to a variable's value once it is assigned in a program?
What happens to a variable's value once it is assigned in a program?
It keeps that value unless changed
Why should every line of an algorithm be recorded in a trace table?
Why should every line of an algorithm be recorded in a trace table?
To ensure you don't miss important logic
What columns should you include when creating a trace table?
What columns should you include when creating a trace table?
Line, variable names, Output, Comments
