Question: Analyzel Trace The Code The following are sample multiple choice questions you may use to study for the test. To check your work, write the
Analyzel Trace The Code The following are sample multiple choice questions you may use to study for the test. To check your work, write the code and run it! 1. What is the printout of the following switch statement? cha 'b' switch (upper(ch)) case 'A' disp(ch). case 'B disp(ch); case 'C' disp(ch); case 'D disp(ch); end a. abcd b. abc c. bcd e, none of the above 2. What is the output of the following fragment? for (i 0: 15) if (mod(i,4) 1) fprintf( %d ",i); end end a. 1 3 5 7 9 11 13 15 b. 1 3 5 7 9 11 13 c. 15913 d. 1 4 8 12 e. 159 13 16 3. A continue statement can be used only in a loop. A. true B. false 4. A break statement can be used only in a loop. A, true B. false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
