

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This quiz was conduct in Fundamental Programming Concepts class. This quiz was in beginning while we were learning MATLAB. Tags for this quiz are: Matlab Basic Programming, First Time Matlab, Basic Matlab, Hello Matlab, Print Hello in Matlab, Input Arguments, Outut Arguments, Print, Disp, Matlab Code
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Tick the correct output. Some questions have been marked as Multiple choice, the rest have one correct answer.
end
squareTest(2)
A. Nothing will be printed B. 2 C. 4 D. 4 .0 0
netID:____________________________
[p,q] = solveQuadratic(1,2,1);
How many input and output arguments are there respectively? A. 2 and 3 B. 2 and 2 C. 3 and 2 D. 3 and 0
A = square(A); A = sqrt(A); disp(A); A. 2 B. 4 C. 1.4142 D. None
B. True True C. 0 10
B. for i = 4: 7 fprintf(‘%d ‘ , i- 3 ); end C. i = 1; while i <= 4 fprintf(‘%d ‘ , i); i = i + 1; end
D. while i < 4 fprintf(‘%d ‘ , i); end