x
Info
x
Warning
x
Danger
 / 
 / 
 / 
Multiple Choice    In the class which models a student, which

Question : Multiple Choice    In the class which models a student, which : 2043783

Multiple Choice

  1.    In the class which models a student, which of these is an attribute?
    1.                head
    2.                advisor
    3.                age
    4.                parent

  1.    In the class which models a bird, which of the following is a capability?
    1.                sing
    2.                birdColor
    3.                feathers
    4.                nest

  1.    In the class which models a house, which of the following is a component?
    1.                address
    2.                houseColor
    3.                door
    4.                owner
  2.    In the class which models a cat, which of the following is a peer object?
    1.                catColor
    2.                catToy
    3.                scratch
    4.                whiskers

  1.    In Java, which of the following is the correct way to declare the property _myHat in class Snowman, given that _myHat is an instance of the Hat class?
    1.                private Hat _myHat;
    2.                private _myHat Hat;
    3.                Hat _myHat;
    4.                _myHat Hat;

  1.    Which of the following is not a technique for managing complexity?
    1.                encapsulation
    2.                parts hierarchies or component hierarchies
    3.                inheritance
    4.                appropriate laziness
  2.    Which of the following is not a shape provided in the Wheels library?
    1.                Triangle
    2.                Line
    3.                Ellipse
    4.                Rectangle

  1.    Names that you choose for your classes, properties, and capabilities are called:
    1.                keywords
    2.                identifiers
    3.                instances
    4.                comments

Answer. B. The names of classes, properties, and capabilities are called identifiers.

  1.    The purpose of the constructor is:
    1.                to give the instance being created its capabilities.
    2.                to initialize the instance variable's properties.
    3.                to generate a name for the instance variable.
    4.                to do all of the above tasks.

 

  1. Capabilities are implemented in Java using:
    1.                instance variables
    2.                properties
    3.                keywords
    4.                methods

Solution
5 (1 Ratings )

Solved
Computer Science 2 Years Ago 183 Views
This Question has Been Answered!
Unlimited Access Free
Explore More than 2 Million+
  • Textbook Solutions
  • Flashcards
  • Homework Answers
  • Documents
Signup for Instant Access!
Ask an Expert
Our Experts can answer your tough homework and study questions
154368 Computer Science Questions Answered!
Post a Question