Show an understanding of abstraction

9.1 Computational Thinking Skills

What is Abstraction?

Abstraction is like using a remote control for a TV. You don’t need to know how the TV works internally; you just press buttons to change the channel. In computing, abstraction lets us focus on the important parts of a problem and ignore the details that are not relevant at the moment.

Exam Tip

When answering “Explain abstraction”, remember to give an example (like the remote control) and describe why it helps solve problems faster.

Common Abstraction Techniques

  • Data abstraction – using variables to represent values.
  • Control abstraction – using loops and functions to reuse code.
  • Process abstraction – breaking a problem into steps or modules.

Example: Calculating the Area of a Rectangle

We only need two pieces of information: length ($l$) and width ($w$). The formula is:

$A = l \times w$

We ignore how the rectangle is drawn or where it is located. That’s abstraction.

Abstraction in Algorithms

  1. Identify the core problem (e.g., sorting a list).
  2. Define input and output clearly.
  3. Use a pseudocode to describe the steps without worrying about syntax.
  4. Translate pseudocode into actual code.

Exam Tip

Show the pseudocode for a simple algorithm (e.g., finding the maximum value) and explain how each line abstracts a real-world action.

Table: Comparing Concrete vs. Abstract Representations

Concrete Example Abstract Representation
A list of student names: John, Mary, Alex Array of strings: students[3]
A recipe with step-by-step instructions. Algorithm: for each step in recipe: execute step

Exam Tip

Use a table like the one above to show the difference between a real-world example and its abstract form. It demonstrates clear understanding of abstraction.

Real-World Analogy: The LEGO Set

Think of a LEGO set as a program. Each brick is a small, reusable component (like a function). You can build many different models (applications) using the same bricks, without needing to know how each brick is manufactured. That’s abstraction at work!

Revision

Log in to practice.

2 views 0 suggestions