Miscellaneous Test on MATLAB - 1

The difference between a function and a script is:


Examine the following MATLAB code. What is the value of B at the end of the program:

A=2;

for ii=0:2:4

A=[A, A*ii];

end

B=A


Which of the following is printed to standard output when the following expression is executed

fprintf('max temp is %.2f degree',100.2345)


Which of the following determines the number of elements N of the matrix B?


Consider matrix B generated by the following expression

B = ones(4) + eyes(4)

Which of the following is true.


Which of the following expressions generates an evenly spaced vector x containing 15 values

Between 4 and 20.


The volume of a cylinder is . Define r as 3 and h as the row column h = [1,5,12].

Which of the following MATLAB expression is correct for solving the volumes of cylinders with the above h values.


Which of the following MATLAB expression gives (-1).


Which of the following MATLAB calculations would result the value 1?


Which one of the following is a legitimate variable names in MATLAB?























Description:

Part of our MATLAB for Financial Engineering Course: http://www.wiziq.com/course/7225-matlab-for-financial-engineering

Our Other Courses:

http://www.wiziq.com/course/7526-bloomberg-assessment-test-bat-exam-prep
http://www.wiziq.com/course/19620-vba-for-financial-engineering-and-modeling

Tags:

MATLAB  Finance

Discussion
Shivgan Joshi
Free Class on: CFA,BAT,FRM, GMAT, Quant FinanFollow me to get updates.
User
1805 Members Recommend
2406 Followers

Your Facebook Friends on WizIQ

More Tests By Author

Miscellaneous Test on MATLAB - 2
10 Questions | 463 Attempts

Miscellaneous Test (Make your Brand....course) - 11
7 Questions | 70 Attempts

Miscellaneous Test (Make your Brand....course) - 10
7 Questions | 35 Attempts