AmbifulWorksheets
Practice that never repeats
CBSE · Class 6 · Computational Thinking and AI

Algorithms: Steps, Order and Debugging

Standard difficulty · 20 questions · 40 marks · Time: 36 minutes

Name: Date: Score: ____ / 40

Show your working for Sections B and C. Answers are on the last page — try every question first!

Section A — Choose the correct answer8 × 1 = 8 marks
1.
A clear, step-by-step set of instructions to solve a problem is an:
  1. output
  2. example
  3. abstraction
  4. algorithm
2.
A number machine does: take away 8 → take away 2 → multiply by 2. What comes out when 30 goes in?
  1. 41
  2. 20
  3. 40
  4. 39
3.
A number machine does: multiply by 2 → multiply by 3 → multiply by 3. 414 came out. What number went in?
  1. 25
  2. 24
  3. 22
  4. 23
4.
Put the steps to plant a seed in the right order (write the letters): (a) Fill a pot with soil (b) Water the pot (c) Make a small hole in the soil (d) Drop the seed in and cover it
  1. a, c, d, b
  2. a, b, d, c
  3. a, d, c, b
  4. d, c, a, b
5.
Isha starts with 18 and follows these steps, writing the number after each one:
Step 1: take away 4 (Isha writes 14)
Step 2: take away 9 (Isha writes 7)
Step 3: multiply by 4 (Isha writes 28)
Step 4: multiply by 4 (Isha writes 112)
One step was worked out wrongly, and the later steps were done correctly from it. Which step number is wrong?
  1. 2
  2. 3
  3. 1
  4. 4
6.
Start with the row G, E, R, S, A. (1) Swap the letters in places 2 and 4. (2) Move the last letter to the front. (3) Move the first letter to the end. Which letter is now in place 3?
  1. R
  2. S
  3. E
  4. G
7.
For each mark in the list, if mark ≥ 60 print "Pass", otherwise print "Try again". How many times is "Pass" printed? Marks: 75, 73, 65, 81, 94, 14, 47, 50, 68, 22
  1. 4
  2. 6
  3. 7
  4. 5
8.
Start with the row R, T, N, H, B. (1) Move the last letter to the front. (2) Move the first letter to the end. (3) Move the first letter to the end. What is the row now?
  1. R, B, H, N, T
  2. N, H, B, R, T
  3. T, N, H, B, R
  4. R, T, N, H, B
Section B — Short answer8 × 2 = 16 marks
9.
What is an algorithm? Give one example.
10.
A number machine does: add 2 → add 11 → add 14. What comes out when 25 goes in?
11.
A number machine does: multiply by 4 → multiply by 2 → add 7. 159 came out. What number went in?
12.
Put the steps to cross a road at a zebra crossing in the right order (write the letters): (a) Look right, left and right again (b) Stop at the edge of the pavement (c) Wait until the road is clear (d) Walk straight across
13.
Sana starts with 8 and follows these steps, writing the number after each one:
Step 1: add 3 (Sana writes 11)
Step 2: add 15 (Sana writes 26)
Step 3: multiply by 4 (Sana writes 107)
Step 4: add 10 (Sana writes 117)
One step was worked out wrongly, and the later steps were done correctly from it. Which step number is wrong?
14.
Start with the row T, F, M, E, H. (1) Move the first letter to the end. (2) Swap the letters in places 4 and 5. (3) Move the last letter to the front. What is the row now?
15.
Start with the row F, C, K, J, D. (1) Move the first letter to the end. (2) Move the last letter to the front. (3) Move the first letter to the end. Which letter is now in place 4?
16.
For each mark in the list, if mark ≥ 33 print "Pass", otherwise print "Try again". How many times is "Pass" printed? Marks: 96, 18, 80, 61, 14, 35, 92, 32
Section C — Word problems4 × 4 = 16 marks
17.
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).
18.
(a) A number machine does: add 9 → add 8 → multiply by 2. What comes out when 22 goes in?
(b) A number machine does: take away 6 → multiply by 4 → add 10. 38 came out. What number went in?
19.
(a) Put the steps to find the larger of two numbers in the right order (write the letters): (a) Read the second number (b) Write down the larger one (c) Read the first number (d) Compare the two numbers
(b) Sana starts with 20 and follows these steps, writing the number after each one:
Step 1: take away 6 (Sana writes 14)
Step 2: multiply by 4 (Sana writes 56)
Step 3: take away 3 (Sana writes 53)
Step 4: multiply by 2 (Sana writes 116)
One step was worked out wrongly, and the later steps were done correctly from it. Which step number is wrong?
20.
(a) Start with the row D, M, A, P, F. (1) Move the last letter to the front. (2) Swap the letters in places 1 and 3. (3) Move the first letter to the end. What is the row now?
(b) For each mark in the list, if mark ≥ 60 print "Pass", otherwise print "Try again". How many times is "Pass" printed? Marks: 47, 50, 30, 43, 42, 18, 11
AmbifulWorksheets
Practice that never repeats
CBSE · Class 6 · Computational Thinking and AI

Answer key

Algorithms: Steps, Order and Debugging · AW-6CT-ALG-2026-V1 · For parents — fold back or tear off before handing the sheet to your child.

QAnswerWorking
1(d) algorithm—
2(c) 4030 → 22 → 20 → 40
3(d) 23undo each step from the end: 414 → 138 → 46 → 23
4(a) a, c, d, bFill a pot with soil → Make a small hole in the soil → Drop the seed in and cover it → Water the pot
5(a) 2step 2 should give 5, not 7
6(a) Rthe row ends as G S R E A
7(b) 6marks of 60 or more: 75, 73, 65, 81, 94, 68
8(c) T, N, H, B, Rcarry out each instruction in order: T N H B R
9A step-by-step set of clear instructions to solve a problem, e.g. the steps to brush your teeth.—
105225 → 27 → 38 → 52
1119undo each step from the end: 159 → 152 → 76 → 19
12b, a, c, dStop at the edge of the pavement → Look right, left and right again → Wait until the road is clear → Walk straight across
133step 3 should give 104, not 107
14H, F, M, E, Tcarry out each instruction in order: H F M E T
15Dthe row ends as C K J D F
165marks of 33 or more: 96, 80, 61, 35, 92
17Start → Read A and B → Is A > B? → Yes: print A; No: print B → Stop. The decision is a diamond with two arrows.—
18(a) 78; (b) 13(a) 22 → 31 → 39 → 78; (b) undo each step from the end: 38 → 28 → 7 → 13
19(a) c, a, d, b; (b) 4(a) Read the first number → Read the second number → Compare the two numbers → Write down the larger one; (b) step 4 should give 106, not 116
20(a) D, F, A, P, M; (b) 0(a) carry out each instruction in order: D F A P M; (b) marks of 60 or more: none