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++

  1. A stub function is
  1. A short function
  2. A function that has been unit tested
  3. A function that acts as a placeholder and returns a simple value so another function can be tested
  4. A function that is broken down into smaller steps through step-wise refinement

  1. A function uses a reference parameter when
  1. It is designed to update a variable supplied as an argument
  2. The parameter will take on a number of different values
  3. The argument supplied to the function is an expression
  4. The function will not have a return value

  1. Which of the following is NOT a good practice when developing a computer program?
  1. Put as many statements as possible into the main function
  2. Document the purpose of each function parameter
  3. Decompose a program into many small functions
  4. Place code that is used multiple times into a separate function

  1. Which of the following statements about variables is true?
  1. The same variable name can be used in two different functions.
  2. The same variable name can be used for two different variables in a single function.
  3. You should use global variables whenever possible.
  4. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!