Skip to main content
Contents
Dark Mode Prev Up Next Scratch ActiveCode Profile
\(
\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 5.13 Glossary
Glossary Glossary
return type.
The type of value a function returns.
return value.
The value provided as the result of a function call.
dead code.
Part of a program that can never be executed, often because it appears after a return statement.
scaffolding.
Code that is used during program development but is not part of the final version.
void.
A special return type that indicates a void function; that is, one that does not return a value.
overloading.
Having more than one function with the same name but different parameters. When you call an overloaded function, C++ knows which version to use by looking at the arguments you provide.
boolean.
A value or variable that can take on one of two states, often called
\(true\) and
\(false\text{.}\) In C++, boolean values can be stored in a variable type called bool.
flag.
A variable (usually type bool) that records a condition or status information.
comparison operator.
An operator that compares two values and produces a boolean that indicates the relationship between the operands.
logical operator.
An operator that combines boolean values in order to test compound conditions.
Reading Questions Reading Questions
1.
Match each phrase with the corresponding definition by dragging the phrase into the appropriate box.
Try again!
return type
The type of value a function returns.
return value
The value provided as the result of a function call.
comparison operator
An operator that compares two values and produces a boolean.
logical operator
An operator that combines boolean values in order to test compound conditions.
2.
Match each phrase with the corresponding definition by dragging the phrase into the appropriate box.
Try again!
dead code
Part of a program that can never be executed.
scaffolding
Code used during program development but not part of the final version.
overloading
Having more than one function with the same name but different parameters.
3.
Match each phrase with the corresponding definition by dragging the phrase into the appropriate box.
Try again!
boolean
A value or variable that can take on one of two states, often called true and false.
flag
A variable that records a condition or status information.
void
A special return type that does not return a value.
You have attempted
of
activities on this page.