Skip to main content\(
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Section 4.10 Glossary
Glossary Glossary
- modulus.
An operator that works on integers and yields the remainder when one number is divided by another. In C++ it is denoted with a percent sign (%).
- conditional.
A block of statements that may or may not be executed depending on some condition.
- chaining.
A way of joining several conditional statements in sequence.
- nesting.
Putting a conditional statement inside one or both branches of another conditional statement.
- recursion.
The process of calling the same function you are currently executing.
- infinite recursion.
A function that calls itself recursively without every reaching the base case. Eventually an infinite recursion will cause a run-time error.
Reading Questions Reading Questions
1.
Match each phrase with the corresponding definition by dragging the phrase into the appropriate box.
Try again!
- modulus
- An operator that works on integers and yields the remainder when one number is divided by another.
- chaining
- A way of joining several conditional statements in sequence.
- nesting
- Putting a conditional statement inside one or both branches of another conditional statement.
2.
Match each phrase with the corresponding definition by dragging the phrase into the appropriate box.
Try again!
- conditional
- A block of statements that may or may not be executed depending on some condition.
- recursion
- The process of calling the same function you are currently executing.
- infinite recursion
- The process of making recursive calls without every reaching the base case.
You have attempted
of
activities on this page.