Exam 6: User-Defined Functions
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C50 Questions
Exam 3: Inputoutput50 Questions
Exam 4: Control Structures I Selection50 Questions
Exam 5: Control Structures II Repetition50 Questions
Exam 6: User-Defined Functions50 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the String Type50 Questions
Exam 8: Arrays and Strings50 Questions
Exam 9: Records Structs50 Questions
Exam 10: Classes and Data Abstraction49 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Searching, Sorting and the Vector Type50 Questions
Exam 17: Linked Lists50 Questions
Exam 18: Stacks and Queues50 Questions
Select questions type
A function ____________________ is a function that is not fully coded.
(Short Answer)
4.9/5
(37)
The output of the statement: cout << pow(3.0, 2.0) + 5 << endl; is ____.
(Multiple Choice)
4.9/5
(33)
A(n) ____________________ parameter s a formal parameter that receives a copy of the content of the corresponding actual parameter.
(Short Answer)
4.9/5
(36)
If a formal parameter is a nonconstant reference parameter, during a function call, its corresponding actual parameter must be a(n) ____________________.
(Short Answer)
4.8/5
(37)
Using functions greatly enhances a program's readability because it reduces the complexity of the function main.
(True/False)
4.8/5
(30)
Stream variables (for example, ifstream and ofstream) should be passed by ____________________ to a function.
(Short Answer)
4.8/5
(38)
The ____________________ of a function consists of the function name and its formal parameter list.
(Short Answer)
4.9/5
(43)
Which statement below about prototypes and headers is true?
(Multiple Choice)
4.7/5
(41)
In C++, a function prototype is the function heading without the body of the function.
(True/False)
4.8/5
(38)
Given the following function: int strange(int x, int y)
{
if (x > y)
return x + y;
else
return x - y;
}
What is the output of the following statement?
cout << strange(4, 5) << endl;
(Multiple Choice)
4.8/5
(35)
Showing 41 - 50 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)