Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Absolute C++
Quiz 4: Parameters and Overloading
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Question 1
Essay
The fundamental rule for testing functions requires that every function be tested in an already fully tested and debugged program.How can this be accomplished? Give a testing scenario for testing a program with main function that calls several functions.
Question 2
True/False
A call-by-value parameter may pass data only into a function.
Question 3
Essay
Write a void function using two type int call-by-reference parameters that swaps the values in the arguments.Be sure to include testable pre and post conditions.
Question 4
Essay
Functions that call other functions can be tested independently of the called functions.
Question 5
True/False
There is only one kind of parameter passing in C++,namely call-by-value. Explain.
Question 6
True/False
Mixing call-by-reference and call-by-value parameters is strictly prohibited.
Question 7
Essay
Carefully describe the call-by-value mechanism.
Question 8
True/False
Call-by-reference is restricted to void functions.
Question 9
True/False
A call-by-reference parameter may pass data only out of a function.
Question 10
True/False
Suppose a programmer supplies the ampersand for call-by-reference in a prototype,but forgets to put the ampersand in the definition.The compiler will nevertheless correctly interpret the programmer's intent and compile the function.