26.9: Quiz Question Answers - Chapter 9
- Page ID
- 54418
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)
Quiz question answers for chapter 9 are as follows:
- When an exit statement is executed, the current loop will be exited, thus not completing any remaining iterations.
- There may be an unlimited number of exit statements. Typically, there is only one.
- When a cycle statement is executed, the remaining statements in the loop are skipped and the next iteration of the loop is started (from the beginning of the loop).
- There may be an unlimited number of cycle statements. Typically, there is only one.
- If there are multiple cycle statements, only the first executed cycle statement will be executed.
- The output is as follows:
The SUM is: 15
- The output is as follows:
start 1 * 1 = 1 1 * 2 = 2 2 * 1 = 2 2 * 2 = 4 3 * 1 = 3 3 * 2 = 6 end
- The statements are valid, however since the initial value of
i
is greater than the stop value, no statements in the loop will be executed. - The statements are valid, however since the initial value of
i
is greater than the stop value, no statements in the loop will be executed. - There is no specified limit.
- When nesting IF statements, the nested IF statement must be completely nested within the loop.