Exam 6: Using C++ Functions
Exam 1: An Overview of Object-Oriented Programming and C++55 Questions
Exam 2: Evaluating C Expressions51 Questions
Exam 3: Making Decisions50 Questions
Exam 4: Performing Loops51 Questions
Exam 5: Understanding Arrays, Strings and Pointers55 Questions
Exam 6: Using C++ Functions51 Questions
Exam 7: Using Classes56 Questions
Exam 8: Class Features and Design Issues53 Questions
Exam 9: Understanding Friends and Overloading Operators52 Questions
Exam 10: Understanding Inheritance53 Questions
Exam 11: Using Templates54 Questions
Exam 12: Handling Exceptions51 Questions
Exam 13: Advanced Input and Output55 Questions
Exam 14: Advanced Topics53 Questions
Select questions type
Match each term with the correct statement below.
Premises:
module that performs a task or group of tasks
Responses:
black box
function prototype
ambiguity
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(30)
What are the disadvantages of using global variables instead of local variables?
(Essay)
4.8/5
(37)
A(n) ____ parameter to a function is one for which an automatic value is supplied if you do not explicitly use one.
(Multiple Choice)
4.7/5
(39)
In different programming languages, the counterpart to a function is known as a subroutine, procedure, or ____________________.
(Short Answer)
4.9/5
(37)
Match each term with the correct statement below.
Premises:
situation in which the compiler cannot tell which version of a function to use
Responses:
function prototype
ambiguity
abstraction
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(39)
The scope resolution operator (____) allows you to refer to a global variable when a local one has taken precedence.
(Multiple Choice)
4.7/5
(45)
An array name is a(n) ____________________; it holds a memory address.
(Short Answer)
4.8/5
(37)
An argument used in a function call is known as a(n) ____ parameter.
(Multiple Choice)
4.8/5
(39)
What are the benefits that you gain when you write functions that you include in other programs?
(Essay)
4.7/5
(40)
A(n) ____ is the expression used within the parentheses when you call a function.
(Multiple Choice)
4.9/5
(40)
What are some errors typically made by beginning programmers when they declare, call, and write functions?
(Essay)
4.8/5
(34)
When you want to use a value stored in a pointer, you must use the ____ to dereference the pointer, or use the value to which it points.
(Multiple Choice)
4.9/5
(43)
The ____ of a variable defines where it can be accessed in a program.
(Multiple Choice)
4.9/5
(33)
Match each term with the correct statement below.
Premises:
cost of doing business involved in calling a function
Responses:
function prototype
subfunction
function
Correct Answer:
Premises:
Responses:
(Matching)
4.7/5
(34)
Encapsulation simplifies your concept of the process or object, allowing you to ignore nonessential details.
(True/False)
4.9/5
(35)
Match each term with the correct statement below.
Premises:
function used by a main() function
Responses:
subfunction
function
ambiguity
Correct Answer:
Premises:
Responses:
(Matching)
4.7/5
(33)
____________________ helps readers of program code understand the purpose of the code.
(Short Answer)
4.9/5
(36)
Showing 21 - 40 of 51
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)