C++ ch9 study #2
Quiz yourself by thinking what should be in
each of the black spaces below before clicking
on it to display the answer.
Help!
|
|
||||
---|---|---|---|---|---|
1.The value of RAND_MAX varies with different systems, but its value is always at least __. | show 🗑
|
||||
1.You should ___ the random number generator in each program in which it is used; otherwise it will generate the same series of numbers each time the program is executed. | show 🗑
|
||||
show | srand()
🗑
|
||||
1.The srand() function is a ___ function, meaning it doesn't return a value. | show 🗑
|
||||
show | time()
🗑
|
||||
1.To use the time() function in a program, the program must contain the ____ directive. | show 🗑
|
||||
show | program-defined
🗑
|
||||
show | function header
🗑
|
||||
1.A function header doesn't end with a semicolon. TRUE/FALSE? | show 🗑
|
||||
The ____ store the information passed to the function when the function is invoked. | show 🗑
|
||||
1.The items of information you send(pass) to a function are called ___. | show 🗑
|
||||
show | passing by value
🗑
|
||||
show | passing by reference
🗑
|
||||
show | value
🗑
|
||||
show | function body
🗑
|
||||
show | return
🗑
|
||||
show | return
🗑
|
||||
show | function prototype
🗑
|
||||
show | beginning
🗑
|
||||
show | FALSE
🗑
|
||||
1.The names of the formal parameters do not need to be identical to the names of the corresponding actual arguments. TRUE/FALSE | show 🗑
|
||||
1.A(n) variable's ___ indicates where in the program the variable can be used. | show 🗑
|
||||
show | lifetime
🗑
|
||||
1.Variables declared within a function and those that appear in a function's parameter list have a local scope and are referred to as _____. | show 🗑
|
||||
show | global variables
🗑
|
||||
1.A (n)____ function is a function that doesn't return a value after completeing its assigned task. | show 🗑
|
||||
show | variable
🗑
|
||||
show | reference
🗑
|
||||
show | address-of-operator
🗑
|
||||
show | ampersand
🗑
|
||||
show | simple, scalar
🗑
|
||||
show | array
🗑
|
||||
show | one dimensional array
🗑
|
||||
1.A unique number called a ____ identifies each variable in a one dimensional array. | show 🗑
|
||||
1.The first variable in a one-dimensional array is assigned a subscript of ___. | show 🗑
|
Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.
Normal Size Small Size show me how
Normal Size Small Size show me how
Created by:
kat1350