Worksheets › Class 6 › Algorithms: Steps, Order and Debugging
Class 6 · Computational Thinking and AI worksheetAlgorithms: Steps, Order and Debugging
CBSE Computational Thinking and AI. Number machines forwards and backwards, putting steps in order, finding the wrong step, swaps and flowcharts. Every sheet has 20 questions in three sections and an answer key, and the questions change every time.
Sample questions
Real questions from this chapter, as the app sets them. Tap Answer to see the answer and working.
Section A · multiple choice
- 1.
A clear, step-by-step set of instructions to solve a problem is an:
- output
- example
- abstraction
- algorithm
Answer
(d) algorithm
- 2.
A number machine does: take away 8 → take away 2 → multiply by 2. What comes out when 30 goes in?
- 41
- 20
- 40
- 39
Answer
(c) 40
30 → 22 → 20 → 40
- 3.
A number machine does: multiply by 2 → multiply by 3 → multiply by 3. 414 came out. What number went in?
- 25
- 24
- 22
- 23
Answer
(d) 23
undo each step from the end: 414 → 138 → 46 → 23
Section B · short answer
- 4.
What is an algorithm? Give one example.
Answer
A step-by-step set of clear instructions to solve a problem, e.g. the steps to brush your teeth.
- 5.
A number machine does: add 2 → add 11 → add 14. What comes out when 25 goes in?
Answer
52
25 → 27 → 38 → 52
Section C · long answer
- 6.
Write an algorithm (4–5 steps) to find the larger of two numbers, and draw it in words as a flowchart (Start, input, decision, output, Stop).
Answer
Start → Read A and B → Is A > B? → Yes: print A; No: print B → Stop. The decision is a diamond with two arrows.
Fresh sheets for your child
In the app, every Algorithms: Steps, Order and Debugging sheet is new: the app remembers the questions your child has already had and leaves them out. Print the sheet as a PDF, or use notebook mode and write the answers in a notebook.
Coming soon for Android and iPhone.