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

Abstraction in computational thinking: simple examples

Focusing on what matters and ignoring what does not, explained with everyday examples and practice questions.

The idea

What is abstraction?

Abstraction means focusing on the important details and ignoring the ones that do not matter for the problem at hand. It lets us work with a simple model of something complex. It is one of the four pillars of computational thinking.

Everyday examples

Where you see abstraction

🚇

A metro map

It keeps stations and connections and leaves out exact distances and the shapes of roads, because riders do not need them.

📋

A student ID card

Name, class, roll number and photo are kept. Favourite colour or number of siblings is left out.

🏏

A cricket scoreboard

Runs, wickets and overs are shown instead of every ball, so the match state is clear at a glance.

📖

A recipe

It gives the steps and quantities, not the history of each ingredient.

Generalising

From specific to general

Abstraction also means finding what many cases share. 'Hello Asha' and 'Hello Rohan' become 'Hello [name]', where name is a variable. Area of one rectangle 4 by 3 becomes the rule length times breadth. The general form works for every case.

In the classroom

A simple routine

1

Ask: what is the goal?

The goal decides which details matter.

2

List the details

Write everything you know about the thing.

3

Cross out what does not help

Keep only what the goal needs.

4

Name the general rule

Can the same idea work for other cases?

Practice

Try these, with answers

What does a metro map leave out, and why is that fine?
It leaves out exact distances and road shapes. Riders only need stations and how lines connect.
You must describe a chair to a robot that has to recognise any chair. Which details are essential?
A surface to sit on and support that holds it up. Colour, brand and the exact size are not essential.
A school library card needs which details: name, class, card number, favourite food?
Name, class and card number. Favourite food does not help the library.
Turn these into one rule: 'Hello Asha', 'Hello Rohan', 'Hello Meera'.
Hello [name]. The name is a variable.
Which is more abstract: 'Rani's red bicycle' or 'a bicycle'?
'A bicycle'. It leaves out the owner and colour and keeps what all bicycles share.
Keep exploring

Related pages

Frequently Asked Questions (FAQs)

Abstraction: answered

What is abstraction in computational thinking?
It is hiding or ignoring unnecessary details and keeping only what matters, so a problem becomes simpler to solve.
What is a simple example of abstraction?
A map. It shows roads and landmarks and leaves out most real-world detail, yet it still helps you find your way.
Is abstraction the same as decomposition?
No. Decomposition splits a problem into parts. Abstraction removes detail to make the problem simpler. They are often used together.
Why is abstraction hard for children?
Choosing what to ignore needs a clear goal. Starting with 'what is the goal?' makes it easier.
How is abstraction used in programming?
Through variables, functions and models that hide detail. A function is used by name without having to read how it works inside.

Build thinking skills, not just answers

See how Ocoviz tracks thinking skills across classes.

Book a Free Demo