Quiz
1_Classes and Objects Quiz
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (8)
1An object is characterized by:
- AState and Validity
- BValidity and Accessibility
- CState and Behavior
- DBehavior and Accessibility
2A variable that represents an object is called
- AConjugate
- BAbstract
- CType
- DObject reference
3State of a given object is maintained in its
- AAlgorithms
- BInstance variables
- CEncapsulations
- DBehaviors
4Combining an object's data and methods into a class is called
- AEncapsulation
- BImplementation
- CInheritance
- DBoxing
5Public methods are accessible to:
- ASome client programs
- BAll client programs
- CAll client programs that asks for return value
- DAll client programs that are abstract
6Static variables are shared by:
- AAll instances of the class
- BAll instances of the class that are private
- CAll instances of the class that are public
- DSome instances of the class depending on what the static variable specifies.
7A constructor
- AMust have arguments
- BCannot be the same as the class
- CCreates and object of the class
- DHas a return type based on the class
8Static methods
- AMust have a return type
- BCannot access instance variables
- CCan access instance variables
- DMust not have a return type
Information
- Description
- Quiz on java classes and objects
- Author
- ncmcoder
- Language
- English
- Views
- 6
- Tags
- Rating
- No ratings yet Rate this quiz