What is the output of the following code? [code]syms p q; x=p+2q; findsym[x][/code]

What is the output of the following code?
Code:
syms p q;
x=p+2q;
findsym[x]
A. Syntactical Error
B. p,q
C. No such command
D. p
 
Answer: a
Explanation: The findsym command takes input within parentheses. But here we have used the [] which leads to a syntactical error. The output would’ve been p,q if the input, x, was given within parentheses.
 

Tìm kiếm

Back
Top