Exam 6: Functions
Exam 1: Introduction to Computers and Programming50 Questions
Exam 2: Introduction to C Plus Plus60 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files63 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays58 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 9: Pointers45 Questions
Exam 10: Characters, C-Strings, and More About the String Class45 Questions
Exam 11: Structured Data53 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes47 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions40 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library Stl39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues47 Questions
Exam 19: Recursion22 Questions
Exam 20: Binary Trees38 Questions
Select questions type
EXIT_FAILURE and ________ are named constants that may be used to indicate success or failure when the exit()function is called.
(Multiple Choice)
4.8/5
(77)
Functions are ideal for use in menu-driven programs. When a user selects a menu item, the program can ________ the appropriate function.
(Multiple Choice)
4.7/5
(70)
Given the following function definition:
What is the output of the following code fragment that invokes calc?

(Multiple Choice)
4.8/5
(78)
Look at the following function prototype.
How many parameter variables does this function have?
(Multiple Choice)
4.8/5
(85)
This is a dummy function that is called instead of the actual function it represents.
(Multiple Choice)
4.8/5
(81)
A function ________ contains the statements that make up the function.
(Multiple Choice)
4.8/5
(80)
This is a collection of statements that performs a specific task.
(Multiple Choice)
4.7/5
(79)
Which line in the following program contains the prototype for the showDub function?

(Multiple Choice)
4.8/5
(79)
When used as parameters, these types of variables allow a function to access the parameter's original argument.
(Multiple Choice)
4.9/5
(88)
It is not considered good programming practice to declare all of your variables globally.
(True/False)
5.0/5
(78)
It is a good programming practice to ________ your functions by writing comments that describe what they do.
(Multiple Choice)
4.7/5
(80)
A function ________ eliminates the need to place a function definition before all calls to the function.
(Multiple Choice)
4.9/5
(74)
Here is the header for a function named computeValue: void computeValue(int value)
Which of the following is a valid call to the function?
(Multiple Choice)
4.9/5
(75)
Showing 21 - 40 of 49
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)