Test 3 CSCI 130 Summer 2010

  1. (5 points) Describe functional decomposition. How is this process used to solve problems.
  2. (10 points) Give an outline of a C++ program which demonstrates each. (Label each in your example)
  3. (10 points) Describe the purpose for each of the items in the previous question.
  4. (5 points) Describe the three ways the actual parameter list (or arguments) must match the formal parameter list.
  5. (5 points) Describe the difference between pass by reference (or variable parameters) and pass by value (or value parameters)
  6. (5 points) Describe the flow of control when a function is invoked.
  7. (5 points) Write a Boolean function with takes a character and returns true if the character is a vowel (a,e,i,o,u) and false otherwise.
  8. (5 points) Write a complete C++ program which opens the file "Input.dat", reads in the integers stored in this file, and prints out the average, maximum and minimum of these numbers.