Exam 6: User-Defined Function
Exam 1: An Overview of Computers and Programming Languages40 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Inputoutput40 Questions
Exam 4: Control Structures I Selection40 Questions
Exam 5: Control Structures Ii Repetition40 Questions
Exam 6: User-Defined Function41 Questions
Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types40 Questions
Exam 8: Arrays40 Questions
Exam 9: Records Structs40 Questions
Exam 10: Classes and Data Abstraction43 Questions
Exam 11: Inheritance and Composition41 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes44 Questions
Exam 13: Operator Overloading and Templates41 Questions
Exam 14: Exception Handling43 Questions
Exam 15: Recursion43 Questions
Exam 16: Linked Lists40 Questions
Exam 17: Stacks and Queue43 Questions
Exam 18: Searching and Sorting Algorithms40 Questions
Exam 19: Binary Trees43 Questions
Exam 20: Graph Algorithms48 Questions
Exam 21: Standard Template Library41 Questions
Select questions type
If a function needs to return more than one value, as a rule of good programming style, you should change it to a(n) ____________________ function and use the appropriate reference parameters to return the values.
(Short Answer)
4.9/5
(76)
The following return statement returns the value 10.
return 10, 16;
(True/False)
4.9/5
(65)
A variable listed in a header is known as a(n) ____ parameter.
(Multiple Choice)
5.0/5
(85)
Given the function prototype:float test(int, int, int); which of the following statements is legal?
(Multiple Choice)
4.8/5
(70)
The following function heading in a C++ program is valid:int funcExp(int u, char v, float g)
(True/False)
4.9/5
(84)
The statement: return 37, y, 2 * 3; returns the value ____.
(Multiple Choice)
4.9/5
(86)
Given the following function:what is the output of the following statement? cout << strange(4, 5) << endl;

(Multiple Choice)
4.8/5
(86)
Which statement below about prototypes and headers is true?
(Multiple Choice)
4.8/5
(81)
What value is returned by the following return statement? int x = 5;
Return x + 1;
(Multiple Choice)
4.8/5
(82)
Given the following function:what is the output of the following statement? cout << next(next(5)) << endl;

(Multiple Choice)
4.9/5
(73)
If the formal parameter list of a function is empty, the parentheses after the function name are not needed.
(True/False)
4.8/5
(78)
A function ____________________ is a function that is not fully coded.
(Short Answer)
4.9/5
(76)
The function main is always compiled first, regardless of where in the program the function main is placed.
(True/False)
4.8/5
(80)
The execution of a return statement in a user-defined function terminates the program.
(True/False)
4.9/5
(91)
The data type of a variable in a return statement must match the function type.
(True/False)
4.9/5
(88)
Once you write and properly debug a function, you can use it in the program (or different programs) again and again without having to rewrite the same code repeatedly.
(True/False)
4.8/5
(82)
Showing 21 - 40 of 41
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)