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
Breaking a program up into a set of manageable sized functions is called ________ programming.
(Multiple Choice)
4.8/5
(24)
A function with a return type of bool must return a value of either True or false.
(True/False)
4.9/5
(33)
If a function has no return statement, the flow of control moves to the next function in the file when the closing brace of the function body is reached.
(True/False)
4.9/5
(26)
You may use the exit() function to return the flow of control from a function back to main() regardless of where the function was called from.
(True/False)
4.8/5
(31)
A function ________ is a statement that causes a function to execute.
(Multiple Choice)
4.8/5
(40)
When you make a function call, the order of the arguments you send does not matter as long as the number of arguments matches the number of parameters the function has.
(True/False)
4.7/5
(43)
The ________ function causes the entire program to terminate, regardless of which function or control mechanism is executing.
(Multiple Choice)
4.9/5
(35)
A(n) ________ argument is one that is automatically passed to a parameter when the argument is left out of the function call.
(Multiple Choice)
4.8/5
(40)
Both function headers and function calls must list the data types of all data being passed to the function.
(True/False)
4.9/5
(36)
A function can have zero to many parameters and either zero or one return value(s).
(True/False)
4.8/5
(35)
Although global variables can be useful, it is considered good programming practice to restrict your use of them.
(True/False)
4.7/5
(37)
When a function just needs to use a copy of an argument passed to it, the argument should normally be passed by value.
(True/False)
4.8/5
(28)
A ________ is a program module whose purpose is to test other modules by calling them.
(Multiple Choice)
4.8/5
(26)
In a function header, in addition to the name of the function, you are required to furnish
(Multiple Choice)
4.9/5
(29)
Functions are ideal for use in menu-drive programs. When a user selects a menu item, the program can call an appropriate function to carry out the user's choice.
(True/False)
4.8/5
(32)
A function can have ________ parameters, and it can have either zero or one return value(s).
(Multiple Choice)
4.7/5
(41)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)