Multiple choice

If we try to represent a degree - 2 polynomial with linked list, how many fields a node will have?

  1. 2

  2. 3

  3. 4

  4. 5

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A degree-2 polynomial (ax^2 + bx + c) requires storing the coefficient and the exponent for each term. A node usually contains: coefficient, exponent, and a pointer to the next node. This totals 3 fields; however, if the question implies a specific structure, 4 might be used for additional metadata.