logo

Question detail

A procedure is designed to find the larger of two values. Which use of the procedure is an example of applying the same abstracted method to a new computation?

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 procedure is designed to find the larger of two values. Which use of the procedure is an example of applying the same abstracted method to a new computation?.

  1. A.Using it with a different pair of values
  2. B.Changing the method so it always returns the first value
  3. C.Removing the comparison from the method
  4. D.Keeping the original pair of values permanently

Model answer

What a good answer should say

  • Using it with a different pair of values

Explanation

Why this works

The method for finding the larger value remains the same, while the particular values used in the computation change.

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.