Classes and Objects Quiz

Question 1 of 8

Medal-premium 1

An object is characterized by:

Select one of the following:

  • State and Validity

  • Validity and Accessibility

  • State and Behavior

  • Behavior and Accessibility

Question 2 of 8

Medal-premium 1

A variable that represents an object is called

Select one of the following:

  • Conjugate

  • Abstract

  • Type

  • Object reference

Question 3 of 8

Medal-premium 1

State of a given object is maintained in its

Select one of the following:

  • Algorithms

  • Instance variables

  • Encapsulations

  • Behaviors

Question 4 of 8

Medal-premium 1

Combining an object's data and methods into a class is called

Select one of the following:

  • Encapsulation

  • Implementation

  • Inheritance

  • Boxing

Question 5 of 8

Medal-premium 1

Public methods are accessible to:

Select one of the following:

  • Some client programs

  • All client programs

  • All client programs that asks for return value

  • All client programs that are abstract

Question 6 of 8

Medal-premium 1

Static variables are shared by:

Select one of the following:

  • All instances of the class

  • All instances of the class that are private

  • All instances of the class that are public

  • Some instances of the class depending on what the static variable specifies.

Question 7 of 8

Medal-premium 1

A constructor

Select one of the following:

  • Must have arguments

  • Cannot be the same as the class

  • Creates and object of the class

  • Has a return type based on the class

Question 8 of 8

Medal-premium 1

Static methods

Select one of the following:

  • Must have a return type

  • Cannot access instance variables

  • Can access instance variables

  • Must not have a return type

Icon_fullscreen

Classes and Objects Quiz

joannazhang13
Quiz by , created over 1 year ago

Quiz on java classes and objects

Eye 23
Pin 1
Balloon-left 0
Tags
joannazhang13
Created by joannazhang13 over 1 year ago
Close