Classes and Objects Quiz

Descripción

Quiz on java classes and objects
joannazhang13
Test por joannazhang13, actualizado hace más de 1 año
joannazhang13
Creado por joannazhang13 hace más de 9 años
78
1

Resumen del Recurso

Pregunta 1

Pregunta
An object is characterized by:
Respuesta
  • State and Validity
  • Validity and Accessibility
  • State and Behavior
  • Behavior and Accessibility

Pregunta 2

Pregunta
A variable that represents an object is called
Respuesta
  • Conjugate
  • Abstract
  • Type
  • Object reference

Pregunta 3

Pregunta
State of a given object is maintained in its
Respuesta
  • Algorithms
  • Instance variables
  • Encapsulations
  • Behaviors

Pregunta 4

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

Pregunta 5

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

Pregunta 6

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

Pregunta 7

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

Pregunta 8

Pregunta
Static methods
Respuesta
  • Must have a return type
  • Cannot access instance variables
  • Can access instance variables
  • Must not have a return type
Mostrar resumen completo Ocultar resumen completo

Similar

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