Cis 247A Week 2 Quiz

Published on January 2018 | Categories: Technology | Downloads: 81 | Comments: 0 | Views: 399
of 1
Download PDF   Embed   Report

1. (TCO 2) Only those class members which are part of the implementation of the class should be declared as ______. 2. (TCO 2) _____ and _____ are other terms for getters and setters 3. (TCO 2) Which of the following statements is/are false? 4. (TCO 2) A Waiter is responsible for taking the order from the Customer based on the menu, informing the Chef of the order and delivering the requested food back to the Customer. A Chef is responsible for preparing the food and notifying the Waiter when the food is ready. The Customer is responsible for placing an order from the menu. In identifying the interface of the Waiter object, which of the following would you consider as (an) appropriate message(s) the Waiter should respond to? 5. (TCO 5) Code inside a _____ should set the newly created object to its initial _____ state. 6. (TCO 5) Which of the following method pairs are not examples of method overloading? 7. (TCO 5) Consider the following class definition. 8. (TCO 2) Can two classes each define a method with the same name? 9. (TCO 5) Which error handling technique(s) is(are) appropriate when developing an application? 10. (TCO 2) Assume a class contains one non-static data member and two static data members. If two objects have been instantiated from the class, how many copies of the static data member exist?

Comments

Content

1. (TCO 2) Only those class members which are part of the implementation of the class should be declared as ______. 2. (TCO 2) _____ and _____ are other terms for getters and setters 3. (TCO 2) Which of the following statements is/are false? 4. (TCO 2) A Waiter is responsible for taking the order from the Customer based on the menu, informing the Chef of the order and delivering the requested food back to the Customer. A Chef is responsible for preparing the food and notifying the Waiter when the food is ready. The Customer is responsible for placing an order from the menu. In identifying the interface of the Waiter object, which of the following would you consider as (an) appropriate message(s) the Waiter should respond to? 5. (TCO 5) Code inside a _____ should set the newly created object to its initial _____ state. 6. (TCO 5) Which of the following method pairs are not examples of method overloading? 7. (TCO 5) Consider the following class definition. 8. (TCO 2) Can two classes each define a method with the same name? 9. (TCO 5) Which error handling technique(s) is(are) appropriate when developing an application? 10. (TCO 2) Assume a class contains one non-static data member and two static data members. If two objects have been instantiated from the class, how many copies of the static data member exist?

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close