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?.
- A.Using it with a different pair of values
- B.Changing the method so it always returns the first value
- C.Removing the comparison from the method
- 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.
