LIM26 is Live — Learning Intelligence Meet 2026 by Ocoviz · Discover the Movement
Computational thinking

Computational thinking exercises with answers

A three-level worksheet that mixes the four pillars of computational thinking, with answers for teachers.

How to use

A mixed worksheet for the whole class

These exercises cover decomposition, pattern recognition, abstraction and algorithms, from easy to harder. Use them as a warm-up, homework or a short quiz. For class-wise questions see our CT questions by class page. This is Ocoviz's practical guidance, aligned to CBSE's 2026-27 direction. It is not CBSE-official. Always refer to CBSE's own circulars and handbooks for official requirements.

Warm-up

Level 1: quick

What comes next: 7, 14, 21, 28, __ ?
35. Add 7 each time.
Put in order: put on shoes, open the door, tie laces, step outside.
Put on shoes, tie laces, open the door, step outside.
Odd one out: square, triangle, circle, cube.
Cube. The others are flat shapes, and the cube is solid.
Sort smallest to largest: 14, 3, 9, 21, 1.
1, 3, 9, 14, 21.
Core

Level 2: think it through

A robot starts at the bottom-left of a 4 by 4 grid and moves Up 3, Right 2. Where does it end?
The top row, third column from the left. Up 3 from the bottom row reaches the top row of a 4-row grid, and Right 2 moves from column 1 to column 3.
Break 'plan a school science exhibition' into five parts.
Sample: theme, project list, space and tables, invitations, safety, judging, clean-up.
What comes next: 100, 90, 81, 73, __ ?
66. The amounts subtracted are 10, 9, 8, 7.
If marks are 80 or more, grade is A, else if marks are 60 or more, grade is B, else grade is C. Find the grade for 72.
B. 72 is below 80 but is 60 or more.
Which details matter for a bus route map: stops, order of stops, the colour of the bus?
Stops and the order of stops. The colour of the bus does not matter.
Challenge

Level 3: harder

Write steps to find the largest of three numbers: a, b, c.
Set largest to a. If b is larger than largest, set largest to b. If c is larger than largest, set largest to c. The answer is largest.
A loop adds 2 to a number starting from 0, five times. What is the final value?
10. The values are 2, 4, 6, 8, 10.
Debug: to make tea: boil water, pour water in the cup, add the tea bag, add sugar, remove the tea bag. What is missing?
A waiting step. The tea needs a minute or two to brew before the tea bag is removed. Any sensible fix with the correct order is acceptable.
Spot the pattern: 1, 4, 9, 16, 25. Write the rule.
Square numbers: n times n.
Why do we test an algorithm with unusual inputs such as zero?
Unusual inputs can break a rule that works for normal values, so testing them reveals hidden errors.
Keep exploring

Related pages

Frequently Asked Questions (FAQs)

CT exercises: answered

What are computational thinking exercises?
Short problems that practise decomposition, pattern recognition, abstraction and algorithms, often without any computer.
Are these exercises suitable for all classes?
Level 1 suits younger classes. Levels 2 and 3 suit middle classes. Choose by what your students can do.
Do students need coding to solve them?
No. They are written for paper and discussion. Coding can be used later with the same ideas.
How many exercises should a lesson include?
Usually three to five, so there is time to discuss the thinking, not just the answers.
Where can I find class-wise questions?
See the computational thinking questions page and its Class 3, 6 and 8 versions.

Build thinking skills, not just answers

See how Ocoviz tracks thinking skills across classes.

Book a Free Demo