468,173 views
41 votes
41 votes
A programmer notices the following two procedures in a library. The procedures do similar, but not identical,things.Procedure square (n) returns the value n2Procedure cube (n) returns the value n3Which of the following procedures is a generalization of the procedures described above?A. Procedure Add (n, m), which returns the value n + mB. Procedure Fourth (n), which returns the value n4C. Procedure Polynomial(n), which returns the value n3 +n2D. Procedure Power (n, m), which returns the value nm

User Vanesa
by
2.6k points

1 Answer

26 votes
26 votes

Answer:

Option B) Procedure Fourth (n), which returns the value n4

Step-by-step explanation:

it the only one that makes sense because procedure 1, 2, and 3 return values n1, n2, and n3, it makes sense that the fourth procedure would return a value of n4.

User Conal Tuohy
by
3.2k points