GoConqr has a new look! Let us know what you think.

Quiz

1_Classes and Objects Quiz

ncmcoder 8 questions

Take the quiz

Questions in this quiz (8)

  1. 1An object is characterized by:
    1. AState and Validity
    2. BValidity and Accessibility
    3. CState and Behavior
    4. DBehavior and Accessibility
  2. 2A variable that represents an object is called
    1. AConjugate
    2. BAbstract
    3. CType
    4. DObject reference
  3. 3State of a given object is maintained in its
    1. AAlgorithms
    2. BInstance variables
    3. CEncapsulations
    4. DBehaviors
  4. 4Combining an object's data and methods into a class is called
    1. AEncapsulation
    2. BImplementation
    3. CInheritance
    4. DBoxing
  5. 5Public methods are accessible to:
    1. ASome client programs
    2. BAll client programs
    3. CAll client programs that asks for return value
    4. DAll client programs that are abstract
  6. 6Static variables are shared by:
    1. AAll instances of the class
    2. BAll instances of the class that are private
    3. CAll instances of the class that are public
    4. DSome instances of the class depending on what the static variable specifies.
  7. 7A constructor
    1. AMust have arguments
    2. BCannot be the same as the class
    3. CCreates and object of the class
    4. DHas a return type based on the class
  8. 8Static methods
    1. AMust have a return type
    2. BCannot access instance variables
    3. CCan access instance variables
    4. DMust not have a return type

Information

Description
Quiz on java classes and objects
Author
ncmcoder
Language
English
Views
6
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?