Evaluation – 2 MCQ’s

Electronics & Communication Engineering MATLAB

This set of MATLAB Multiple Choice Questions & Answers (MCQs) focuses on “Evaluation – 2″.

1. The feval command can evaluate __________
a) A single command
b) Multiple commands
c) Multiple functions
d) No such function exists

2. The eval command can evaluate __________
a) A single function
b) Only a single command
c) The function does not exist
d) Multiple commands

3. What is the output of the following code?

feval[‘round’,123.12]

a) 123
b) 123.12
c) 123.1
d) Error

4. The input to the eval command is given using [].
a) True
b) False

5. What is the value of ans from the following code?

feval(‘sin(0),cos(0),123’)

a) 123
b) 0,1,123
c) Error
d) 0

6. The input to the evalc command is given using {}.
a) True
b) False

7. What is the output of the following code?

evalc(‘Laplace(t)’)

a) Syntactical Error
b) Symbolic error
c) ‘1/s2
d) 1/s2

8. How much does the precision change while finding sin(x) using evalc and eval?
a) 10%
b) 2%
c) 20%
d) No change

9. Which function gets disabled while using evalc()?
a) diary
b) sin
c) inf
d) round

Leave a Reply

Your email address will not be published. Required fields are marked *