Exam 6: Modularity Using Functions
Exam 1: Preliminaries51 Questions
Exam 2: Problem Solving Using C++52 Questions
Exam 3: Assignment, Formatting, and Interactive52 Questions
Exam 4: Selection Structures51 Questions
Exam 5: Repetition Statements50 Questions
Exam 6: Modularity Using Functions50 Questions
Exam 7: Arrays50 Questions
Exam 8: Io Streams and Data Files50 Questions
Exam 9: Completing the Basics50 Questions
Exam 10: Pointers50 Questions
Exam 11: Introduction to Classes50 Questions
Exam 12: Adding Functionality to Your Classes50 Questions
Exam 13: Structures50 Questions
Exam 14: Numerical Methods50 Questions
Select questions type
Telling the C++ compiler that a function is ____ causes a copy of the function code to be placed in the program at the point the function is called.
Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
A
A(n) ____ declaration statement simply informs the computer that a global variable already exists and can now be used.
Free
(Multiple Choice)
4.9/5
(29)
Correct Answer:
C
A variable with ____ scope has storage created for it by a declaration statement located outside any function.
Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
B
Where and how long a variable s storage locations are kept before they re released can be determined by the variable s ____.
(Multiple Choice)
4.8/5
(30)
A variable is said to be alive if ____________________ for the variable is available.
(Short Answer)
4.9/5
(39)
Variables that are created by definition statements external to a function are called ____________________ variables.
(Short Answer)
4.9/5
(44)
To actually use a returned value, you must provide a(n) ____________________ to store the value or to use the value in an expression.
(Short Answer)
4.9/5
(30)
In creating C++ functions, you must be concerned with the function itself and how it interacts with other functions, such as main() .
(True/False)
4.7/5
(39)
The names in parentheses in the header are called the formal ____ of the function.
(Multiple Choice)
4.7/5
(38)
A function returning a value must specify the ____________________ type of the value to be returned.
(Short Answer)
4.7/5
(27)
Initialization of ____________________ variables is done only once, when the program is first compiled.
(Short Answer)
4.9/5
(35)
C++ provides two types of address parameters: ____________________ and pointers.
(Short Answer)
4.8/5
(32)
In a function call, the items enclosed in parentheses are known as ____________________.
(Short Answer)
4.9/5
(44)
A function returning a value must specify, in its ____, the data type of the value to be returned.
(Multiple Choice)
4.9/5
(38)
The line template , called a ____, is used to inform the compiler that the function immediately following is a template using a data type named T .
(Multiple Choice)
4.7/5
(43)
After they re created, local static variables remain in existence for the program s lifetime.
(True/False)
4.9/5
(33)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)