Networking Essay

636 Words3 Pages
Week 2 : Object Construction and Data Abstraction - Quiz ------------------------------------------------- Top of Form Time Remaining: | | 1. (TCO 2) Only those class members that are hidden from users of the class are part of the _____ of the class. (Points : 2) interface implementation constructors GUI (graphical user interface) | 2. (TCO 2) Getters and setters are sometimes called _____ methods and _____ methods, respectively. (Points : 2) mutator; accessor accessor; mutator retrieval; putter None of the above | 3. (TCO 2) Which of the following statements is/are false? (Points : 2) A change to the implementation should not require a change to the user’s code. If you declare an attribute as private, you do not have to worry about tracking down every piece of code that might have changed the attribute when debugging. When interacting with the interface of an object, you need to know what the code looks like inside the methods, which comprise the interface. All of the above None of the above | 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? (Points : 2) “The spaghetti and meatballs dish is ready!” “The hamburger dish is ready. Handle the plate carefully and take it to table 9, along with some ketchup and mustard. Ask if the customer would like some mayonnaise as well.” “What

More about Networking Essay

Open Document