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 10.15 Glossary
Glossary Glossary
- vector:.
A named collection of values, where all the values have the same type, and each value is identified by an index.
- element:.
One of the values in a vector. The
[]
operator selects elements of a vector.
- index:.
An integer variable or value used to indicate an element of a vector.
- constructor:.
A special function that creates a new object and initializes its instance variables.
- deterministic:.
A program that does the same thing every time it is run.
- pseudorandom:.
A sequence of numbers that appear to be random, but which are actually the product of a deterministic computation.
- seed:.
A value used to initialize a random number sequence. Using the same seed should yield the same sequence of values.
- bottom-up design:.
A method of program development that starts by writing small, useful functions and then assembling them into larger solutions.
- histogram:.
A vector of integers where each integer counts the number of values that fall into a certain range.
Reading Questions Reading Questions
1.
Match each phrase with the corresponding definition by dragging the phrase into the appropriate box.
Try again!
- vector
- A named collection of values, where all the values have the same type, and each value is identified by an index.
- element
- One of the values in a vector.
- index
- An integer variable or value used to indicate an element of a vector.
2.
Match each phrase with the corresponding definition by dragging the phrase into the appropriate box.
- constructor
- A special function that creates a new object and initializes its instance variables.
- pseudorandom
- A sequence of numbers that appear to be random, but which are actually the product of a deterministic computation.
- seed
- A value used to initialize a random number sequence.
3.
Match each phrase with the corresponding definition by dragging the phrase into the appropriate box.
Try again!
- deterministic
- A program that does the same thing every time it is run.
- bottom-up design
- A method of program development that starts by writing small, useful functions and then assembling them into larger solutions.
- histogram
- A vector of integers where each integer counts the number of values that fall into a certain range.
You have attempted
of
activities on this page.