logo

AQA A-Level Computer Science practice

A function is replaced by a different computation method, but programs that use it still receive the expected result. Which conclusion is most appropriate?

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

A function is replaced by a different computation method, but programs that use it still receive the expected result. Which conclusion is most appropriate?.

  1. A.The function still provides functional abstraction because its particular computation method remains hidden
  2. B.Functional abstraction has been removed because the computation method changed
  3. C.The function has become a procedure because its implementation was changed
  4. D.The function is no longer an abstraction because it produces a result

Answer and explanation

Concise answer

The function still provides functional abstraction because its particular computation method remains hidden

Why this is correct

Functional abstraction is concerned with hiding the particular computation method. Changing that method does not remove the abstraction if the caller still uses the function without depending on the method.

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