Question: C++ A stub function is A short function A function that has been unit tested A function that acts as a placeholder and returns a
C++
- A stub function is
- A short function
- A function that has been unit tested
- A function that acts as a placeholder and returns a simple value so another function can be tested
- A function that is broken down into smaller steps through step-wise refinement
- A function uses a reference parameter when
- It is designed to update a variable supplied as an argument
- The parameter will take on a number of different values
- The argument supplied to the function is an expression
- The function will not have a return value
- Which of the following is NOT a good practice when developing a computer program?
- Put as many statements as possible into the main function
- Document the purpose of each function parameter
- Decompose a program into many small functions
- Place code that is used multiple times into a separate function
- Which of the following statements about variables is true?
- The same variable name can be used in two different functions.
- The same variable name can be used for two different variables in a single function.
- You should use global variables whenever possible.
- A variable is visible from the point at which it is defined until the end of the program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
