Practice Abstraction in CS Thinking

Use these practice problems to test your method after reviewing the concept explanation and worked examples.

Quick Recap

Focusing only on the essential information needed to solve a problem while ignoring irrelevant details.

Zooming out to see the big picture, hiding complexity you don't need right now.

Example 1

medium
A map of the London Underground is an example of abstraction. Explain what details are kept and what is removed.

Example 2

medium
A function `calculateArea(length, width)` returns `length * width`. Explain how this is an example of abstraction.

Example 3

easy
When using a TV remote, you press 'Volume Up' without knowing the electronics inside. How does this illustrate abstraction?

Example 4

easy
A weather app shows temperature, rain chance, and wind speed, but hides sensor voltages and calibration values. What information is abstracted away, and why is that useful?