logo

Question detail

A calculation is performed using the values 8 and 5. Which change best demonstrates procedural abstraction?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Abstraction and automation

Exam-style question

Try this first

A calculation is performed using the values 8 and 5. Which change best demonstrates procedural abstraction?.

  1. A.Recording only the answer 13
  2. B.Replacing the calculation with a method that can add any two values
  3. C.Using larger values instead
  4. D.Writing down the two input values again

Model answer

What a good answer should say

  • Replacing the calculation with a method that can add any two values

Explanation

Why this works

The particular values 8 and 5 have been abstracted away. The resulting method can be applied to other values.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.