1) Choose the INCORRECT control structure in C++ a) Selection b) Sequential c) Incremental 2) Identify which of the following is NOT an "iteration" control structure a) For b) Switch Case c) While 3) Identify the keyword labeled with "X" that suites with statement in This Figure a) select b) case c) break 4) Identify the keyword that suites with statement given in This Figure a) break b) select c) switch 5) Identify the CORRECT syntax to write "for" statement a) for (initialization ; condition; increment/decrement) b) for (initialization ; condition; increment/decrement); c) for {initialization ; condition; increment/decrement} 6) Determine the final value for variable "num" based on the code segment given in This Figure a) 6 b) 4 c) 2 7) Determine the first output that will be displayed by the code in This Figure a) Quiz : 5 b) Quiz : num c) Quiz : 4 8) Choose the CORRECT answer if the while loop statement convert to for loop statement based on the code segment given in This Figure a) for (num==5; num>=3; num--) b) for (num=5; num>=3; num--) c) for (num=5; num>=3; num--); 9) Determine the output that will be displayed based on the code segment given in This Figure a) First Output b) Second Output c) no output due to error 10) Complete the missing code for Line:9 in this Figure to produce output as shown a) for (X<4); b) while (X<5); c) while (X<=4);

CHAPTER 3 DFC20113 PROGRAMMING FUNDAMENTALS

Leaderboard

Visual style

Options

Switch template

Continue editing: ?