MAE 284 END OF COURSE ANSWERS AND
QUESTIONS SET A+
✔✔Which one of the following represents an input/output statement? - ✔✔Look up this
one
✔✔What will be the output of the following MATLAB code?
x = [7 6 5 4 3 2 1];
x(3) - ✔✔5
✔✔The function name MUST be the same as the filename. (T/F) - ✔✔True
✔✔Choose the statement that is equivalent to the expression below:
8^2/6-7 - ✔✔((8^2)/6)-7
✔✔If the m-file function is to be saved as quiz.m, what should the first line of this file
be? - ✔✔function [s] = quiz(n)
✔✔The false position algorithm is identical to the bisection algorithm, except for the
calculations for the estimated root location. (T/F) - ✔✔True
✔✔Bracketing methods always require two initial estimates. (T/F) - ✔✔True
✔✔Bracketing methods are based on the idea that if two function values, f 1 and f 2 ,
have ________ signs, there must be at least one root between them. - ✔✔opposite
✔✔MATLAB's built-in fzero function can be used to solve any equation of the form
f(x)=c. (T/F) - ✔✔True
QUESTIONS SET A+
✔✔Which one of the following represents an input/output statement? - ✔✔Look up this
one
✔✔What will be the output of the following MATLAB code?
x = [7 6 5 4 3 2 1];
x(3) - ✔✔5
✔✔The function name MUST be the same as the filename. (T/F) - ✔✔True
✔✔Choose the statement that is equivalent to the expression below:
8^2/6-7 - ✔✔((8^2)/6)-7
✔✔If the m-file function is to be saved as quiz.m, what should the first line of this file
be? - ✔✔function [s] = quiz(n)
✔✔The false position algorithm is identical to the bisection algorithm, except for the
calculations for the estimated root location. (T/F) - ✔✔True
✔✔Bracketing methods always require two initial estimates. (T/F) - ✔✔True
✔✔Bracketing methods are based on the idea that if two function values, f 1 and f 2 ,
have ________ signs, there must be at least one root between them. - ✔✔opposite
✔✔MATLAB's built-in fzero function can be used to solve any equation of the form
f(x)=c. (T/F) - ✔✔True