

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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