Professional Documents
Culture Documents
Quiz 3
Quiz 3
Correct
Mark 0.20 out of 0.20
Flag question
Question text
trapz is the command for
Select one:
a. none
b. numerical integration
c. interpolation
d. numerical differentiation
Feedback
Your answer is correct.
The correct answer is: numerical integration
Question 2
Correct
Mark 0.20 out of 0.20
Flag question
Question text
Name of function and function file must be same
Select one:
a. False
b. True
c. Can not be answered
d. none
Feedback
Your answer is correct.
The correct answer is: True
Question 3
Correct
Mark 0.20 out of 0.20
Flag question
Question text
The directory in which function is saved in MUST be in the path
Select one:
a. None
b. True
c. Can't be answered
d. False
Feedback
Your answer is correct.
The correct answer is: True
Question 4
Correct
Mark 0.20 out of 0.20
Flag question
Question text
In the following function
[X, obj] = linprog(f, A, b)
how many input and output variables are present?
Select one:
a. 3, 2
b. 3, 3
c. 2, 3
d. None
Feedback
Your answer is correct.
The correct answer is: 3, 2
Question 5
Correct
Mark 0.20 out of 0.20
Flag question
Question text
Out of the following what are the the types of function in MATLAB
Select one:
a. Built-In Function
b. Anonymous Function
c. Local Function
Feedback
Your answer is correct.
The correct answer is: All the above
Question 6
Correct
Mark 0.20 out of 0.20
Flag question
Question text
Local function should be defined in
Select one:
a. Command window
b. m file
c. anywhere
d. can not say
Feedback
Your answer is correct.
The correct answer is: m file
Question 7
Correct
Mark 0.20 out of 0.20
Flag question
Question text
in the following local function definition
function [x y] = new_function(a, b, c)
[x y] and (a, b, c) are
Select one:
Feedback
Your answer is correct.
The correct answer is: output variables and input variables respectively
Question 8
Correct
Mark 0.20 out of 0.20
Flag question
Question text
@ used in anonymous function creates
Select one:
a. address for the input variable
b. location for the function
c. None of the above
d. A function handle
Feedback
Your answer is correct.
The correct answer is: A function handle
Question 9
Correct
Mark 0.20 out of 0.20
Flag question
Question text
gradient function is used for
Select one:
a. numerical integration
b. interpolation
c. none
d. numerical differentiation
Feedback
Your answer is correct.
The correct answer is: numerical differentiation
Question 10
Correct
Mark 0.20 out of 0.20
Flag question
Question text
In the following local function definition
function [x y] = new_function(a, b, c)
new_function is
Select one:
a. name of local function
b. name of function file in which code is stored
c. Both A and B
d. None
Feedback
Your answer is correct.
The correct answer is: Both A and B