What is the output of the following code? [code]solve[‘x^2+1=0’][/code]

Pham Quỳnh

New member
What is the output of the following code?
Code:
solve[‘x^2+1=0’]
A. x=j,-j
B. x=+i,-i
C. Syntactical Error
D. Logical Error
 
Answer: c
Explanation: The input to the solve command should always be within parentheses. Since, here, we’ve given the input within [], this will result in a syntactical error. The output would’ve been x=+i,-i if the input was given in parentheses.
 

Tìm kiếm

Back
Top