Classes and Objects Quiz

Beschreibung

Quiz on java classes and objects
joannazhang13
Quiz von joannazhang13, aktualisiert more than 1 year ago
joannazhang13
Erstellt von joannazhang13 vor mehr als 9 Jahre
82
1

Zusammenfassung der Ressource

Frage 1

Frage
An object is characterized by:
Antworten
  • State and Validity
  • Validity and Accessibility
  • State and Behavior
  • Behavior and Accessibility

Frage 2

Frage
A variable that represents an object is called
Antworten
  • Conjugate
  • Abstract
  • Type
  • Object reference

Frage 3

Frage
State of a given object is maintained in its
Antworten
  • Algorithms
  • Instance variables
  • Encapsulations
  • Behaviors

Frage 4

Frage
Combining an object's data and methods into a class is called
Antworten
  • Encapsulation
  • Implementation
  • Inheritance
  • Boxing

Frage 5

Frage
Public methods are accessible to:
Antworten
  • Some client programs
  • All client programs
  • All client programs that asks for return value
  • All client programs that are abstract

Frage 6

Frage
Static variables are shared by:
Antworten
  • 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.

Frage 7

Frage
A constructor
Antworten
  • Must have arguments
  • Cannot be the same as the class
  • Creates and object of the class
  • Has a return type based on the class

Frage 8

Frage
Static methods
Antworten
  • Must have a return type
  • Cannot access instance variables
  • Can access instance variables
  • Must not have a return type
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

class Tiger
Kostas Diakogiannis
Label the Classroom
Robert Caceres
OOP (Object Oriented Programming)
Adam Cook
Unit 2 - Key Vocabulary
Shannon Anderson-Rush
JavaScript Fundamentals
Andrew Watters
What is an interface?
joannazhang13
Spanish School Subjects
Maddie Medler
Abstract Class Quiz
joannazhang13
Objects
Ruth Hyndman
English I term 11a
caress414
Chapter 2: Basic Computation
Alexander Cintron