The minimum number of arithmetic operations required to evaluate the polynomial P(X) = X5 + 4 X3 + 6 X + 5 for a given value of X, using only one temporary variable is …
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2014 Set 3 · Q11
Time
Your answerNumerical answer
Solution
Official answer: 7
Programming in CThe polynomial can be factored as:
Using a single temporary variable , the evaluation proceeds in the following sequence of arithmetic operations:
(Multiplication 1: )
(Addition 1: )
(Multiplication 2: )
(Multiplication 3: )
(Addition 2: )
(Multiplication 4: )
(Addition 3: )
This requires 4 multiplications and 3 additions, giving a total of 7 arithmetic operations.
Try the question first, then check your work.
Examiner trap
Factor out powers of and evaluate progressively using Horner's rule, reusing the single variable at each step.
This Programming in C previous year question is Q11 of the GATE CSE 2014 Set 3 paper. Find more GATE CSE PYQs on Programming in C in Programming and Data Structures, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Programming in C PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Programming in C has 74 GATE CSE PYQs across 25 papers from 2011 to 2026. 16 of them are 1-mark NAT questions like this one, and GATE CSE 2014 Set 3 has 3.
How GATE tests Programming in CIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.