logo

AQA A-Level Computer Science practice

Which situation best demonstrates functional abstraction?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Abstraction and automation

Exam-style question

Try this first

Which situation best demonstrates functional abstraction?.

  1. A.A programmer calls a function for a result without needing to know how the result is computed
  2. B.A programmer writes every computation directly in the main part of a program
  3. C.A programmer chooses a variable name that describes the data it stores
  4. D.A programmer copies the same calculation into several different parts of a program

Answer and explanation

Concise answer

A programmer calls a function for a result without needing to know how the result is computed

Why this is correct

Functional abstraction disregards the particular computation method. The function can therefore be used for its result without exposing its implementation.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions