What is the output of the following code? [code]poly{1,2}[/code]

What is the output of the following code?
Code:
poly{1,2}
A. Syntactical Error
B. 1 3 2
C. Cannot be determined
D. 0
 
Answer: b
Explanation: The poly command returns the co-efficients of the polynomial according to the given input, the inputs being the roots of the command. The output would’ve been 1 3 2 but the input is given within {} which leads to a syntactical error. It should be provided within parentheses.
 

Tìm kiếm

Back
Top