Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

000 26.3 12.21 e. x-123.9: 30.3; 43:56.8 6. Which of the following is printed to

ID: 3283134 • Letter: 0

Question

000 26.3 12.21 e. x-123.9: 30.3; 43:56.8 6. Which of the following is printed to standard output when the follo expression is executed fprtt(max temp is %2t degree',100.2345) a. 'max temp is %2t degree, 100.2345 b, max temp is %2t degree 100.2345 c. max temp is 100.23 degree d. max temp is 100.2345 degree e. Invalid syntax 7. Examine the following MATLAB code. What is the value of B at the en the program A-2: for i-0:2:4 As [A. A. end B-A a. B#2.0.0.0 b, B 2 2 0 2 0 0 2 0 0 0 ?. ?# 2 0 4 0 80 160 d. B- 2248 e. None of the above The difference between a function and a script is: 8. a. only a function file can be run from the command line b. only a function requires inputs c. only a script file can perform a series of commands d. functions cannot save variable values e. function variable names only have meaning within the function. whereas script variables are available to other programs. 9. Executing in the Command Window the following code a0112 size(a) returns a. error message b. 1 2 c. 2 1 d. 2 e. none of above 10.The following lines show collections of charocters (e9-yon, m3) that either can or cannot be valid names of MATLAB variables. Which line contains EXCLUSIVELY valid names?

Explanation / Answer

I have executed all these commands in MATLAB command window and giving the answers. As these are direct outputs by MATLAB, I am not giving explanation for answers.

6) Answer is option C. max temp is 100.23 degree

7) Answer is option C. B=[ 2 0 4 0 8 0 16 0];

8) Answer is option E. Function variables are defined and can be used only inside the funtion, where as script variables can be used in other programs as well.

9) Answer is option C. size(a) returns [2 1].