Homework 7 

Assigned Week of Laboratory 9
Electronic Submission Due by 10AM, April 4
No Late Submissions Will Be Accepted For Any Reason
As We Are Posting The Answers Wednesday Morning

Pledge Requirements

You may on this pledged assignment work in groups.  Your partners may be from any lab section. However, each student is required to do his or her own separate submission. Please indicate in your submission who you worked with. Your group may discuss the content of this assignment and your thoughts with anyone, but your group must do all if its own work.

Purpose

To get you ready for next week's test.

Assignment

There have been three files created for your perusal.

Please examine the files and determine the answers to the following questions. Spend the time to get this assignment. It is not our intention for you to run this code -- we want you to figure it out by you being the computer. It will help you on our test and on our final. Create your answers as a text file. Submit the file electronically under the name hw07.txt. Each answer will be worth 5 points.

  1. What type of  Widget member is
  2. What type of  Widget member is
  3. What type of  Widget member is
  4. What type of  Widget member is
  5. What type of  Widget member is
  6. What type of  Widget member is
  7. What output is produced by the following object definition from client.cpp?
  8. What output is produced by the following object definition from client.cpp?
  9. What output is produced by the following object definition from client.cpp?
  10. What output is produced by the following object definition from client.cpp?
  11. What output is produced by the following object definition from client.cpp?
  12. What output is produced by the following statement from client.cpp?
  13. What output is produced by the following statements from client.cpp?
  14. What output is produced by the following statement from client.cpp given that the next input string in standard input is xyz?
  15. What output is produced by the following statement from client.cpp?
  16. Suppose that the comment  in client.cpp was replaced with the following statement. Would the program compile successfully? If so, what is the output? If not, why doesn't it compile?
  17. Suppose that the comment  in client.cpp was replaced with the following statement. Would the program compile successfully? If so, what is the output? If not, why doesn't it compile?
  18. Suppose that the comment  in client.cpp was replaced with the following statement. Would the program compile successfully? If so, what is the output (if any)? If not, why doesn't it compile?
  19. Suppose that the comment  in client.cpp was replaced with the following statement. Would the program compile successfully? If so, what is the output? If not, why doesn't it compile?
  20. Suppose that the comment  in client.cpp was replaced with the following statement. Would the program compile successfully? If so, what is the output? If not, why doesn't it compile?