Exam 6: Functions
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C Plus Plus40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions40 Questions
Exam 5: Looping40 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays40 Questions
Exam 9: Searching, Sorting, Algorithm Analysis40 Questions
Exam 10: Pointers62 Questions
Exam 11: More About Classes and Object-Oriented Programming70 Questions
Exam 12: More on C-Strings and the String Class40 Questions
Exam 13: Advanced File and Io Operations40 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions22 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library Stl40 Questions
Exam 17: Linked Lists38 Questions
Exam 18: Stacks and Queues36 Questions
Exam 19: Binary Trees38 Questions
Select questions type
A(n) ________ is information that is passed to a function, and a(n) ________ is a special variable that receives and holds that information.
Free
(Multiple Choice)
4.9/5
(90)
Correct Answer:
D
When more than one function has the same name they are called ________ functions.
Free
(Multiple Choice)
4.7/5
(81)
Correct Answer:
A
A function ________ includes the statements that make up the function.
Free
(Multiple Choice)
4.9/5
(80)
Correct Answer:
A
In a function prototype, in addition to the name of the function, you are required to furnish
(Multiple Choice)
4.8/5
(86)
A ________ is a dummy function that is called instead of the actual function it represents, to test that the call to and return from the function are working correctly.
(Multiple Choice)
4.9/5
(89)
In a function call, in addition to the name of the function, you are required to furnish
(Multiple Choice)
4.8/5
(91)
In the following statement, what is 22.0?
Cout << sqrt(22.0);
(Multiple Choice)
4.9/5
(76)
In C++ global and local numeric variables are initialized to zero by default.
(True/False)
4.9/5
(83)
One reason for using functions is to break programs into a set of manageable units, or modules.
(True/False)
4.8/5
(69)
When a function needs access to an original argument passed to it, for example in order to change its value, the argument needs to be
(Multiple Choice)
4.9/5
(58)
It is possible for a function to have some parameters with default arguments and some without.
(True/False)
4.8/5
(87)
The ________ statement causes a function to end and the flow of control to move back to the point where the function call was made.
(Multiple Choice)
4.8/5
(85)
When used as a parameter, a ________ variable allows a function to access and modify the original argument passed to it.
(Multiple Choice)
4.9/5
(83)
When only a copy of an argument is passed to a function, it is said to be passed
(Multiple Choice)
4.7/5
(67)
A ________ variable is defined inside the body of a function and is not accessible outside that function.
(Multiple Choice)
5.0/5
(90)
The value in ________ local variable is retained between function calls.
(Multiple Choice)
4.9/5
(86)
A function ________ eliminates the need to place the function definition before all calls to the function.
(Multiple Choice)
4.9/5
(86)
Showing 1 - 20 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)