adplus-dvertising
frame-decoration

Question

What is the output of the following code?
p=eval(cos(0));

a.

p=1

b.

p=
1

c.

Syntactical error

d.

The eval command does not exist

Posted under MATLAB

Answer: (c).Syntactical error

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following code?

Similar Questions

Discover Related MCQs

Q. The for keyword can be used to evaluate expressions using eval().

Q. The evalc function is different from the eval command ________

Q. What is common to evalc and the eval commands, apart from the output?

Q. The feval command can evaluate __________

Q. The eval command can evaluate __________

Q. The input to the eval command is given using [].

Q. The input to the evalc command is given using {}.

Q. Which function gets disabled while using evalc()?

Q. How much does the precision change while finding sin(x) using evalc and eval?

Q. Can we save a MATLAB program while in debugging mode?

Q. To enter a value and change the course of working of a function while it is working, we use the __________

Q. To end the debugging mode, we use the __________

Q. Which of the following command would allow us to continue the evaluation of a function in the debugging mode?

Q. What is dbstop command?

Q. The dbstop command, for anonymous functions __________

Q. The dbquit command, if placed in an m.file, will __________

Q. The dbcont command, if placed in an m.file, will __________

Q. The dbstop command, for functions stored in the system memory, with a line mentioned will __________

Q. The debug commands can be run in

Q. The return command is similar to the dbcont command.