Question
Question 1 2 pts (TCO 1) The mechanism that allows you to combine data and the behavior for that data into a single unit is
Question 1 2 pts (TCO 1) The mechanism that allows you to combine data and the behavior for that data into a single unit is called a(n) _____. member class object field
Question 2 2 pts (TCO 1) Which of the following would be a more appropriate choice for a method in a Fork class? Eat() Color() Material() Bend()
Question 3 2 pts (TCO 1) Which of the following statements is/are true? C. The state of an object should not be hidden. None are true A. Objects communicate through message passing. All are true D. Implementation details should be visible through the interface of a class. A and C B. An object is necessary to be defined before you can create a class.
Question 4 2 pts (TCO 1) Which of the following would be a more appropriate choice for a data member in a Button class? width show click resize
Question 5 2 pts (TCO 1) The following is/are object-oriented programming feature(s). Encapsulation Abstraction All of the above Inheritance None of the above
Question 6 2 pts (TCO 8) Most professional coding standards use _____ for data members. Attribute case no specific naming convention Pascal case Camel case
Question 7 2 pts (TCO 1) Examine the ClockType class definition. How many class members does it contain?
class ClockType
{ public : void setTime(int, int, int); int getTime(); void printTime(); private: int hr; int min; int sec; } 2 An average of 5 because (7 + 3) / 2 = 5 9 3 6
Question 8 2 pts (TCO 1) Assume we have two objects of a class. How many copies of the class's attributes and methods exist in the instantiated objects? Zero, the objects do not have attributes and methods Three copies Only one copy, both objects always share it Two copies, each object has its own copy
Question 9 2 pts (TCO 1) Both _____ and _____ allow for code reuse and the building of more complex systems. None of the above UML diagrams; serialization messaging; object behaviors inheritance; composition
Question 10 2 pts (TCO 1) By default, all members of a class are _____. private internal public protected unfriendly
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started