Classes and Objects Quiz

Descrição

Quiz on java classes and objects
joannazhang13
Quiz por joannazhang13, atualizado more than 1 year ago
joannazhang13
Criado por joannazhang13 mais de 9 anos atrás
86
1

Resumo de Recurso

Questão 1

Questão
An object is characterized by:
Responda
  • State and Validity
  • Validity and Accessibility
  • State and Behavior
  • Behavior and Accessibility

Questão 2

Questão
A variable that represents an object is called
Responda
  • Conjugate
  • Abstract
  • Type
  • Object reference

Questão 3

Questão
State of a given object is maintained in its
Responda
  • Algorithms
  • Instance variables
  • Encapsulations
  • Behaviors

Questão 4

Questão
Combining an object's data and methods into a class is called
Responda
  • Encapsulation
  • Implementation
  • Inheritance
  • Boxing

Questão 5

Questão
Public methods are accessible to:
Responda
  • Some client programs
  • All client programs
  • All client programs that asks for return value
  • All client programs that are abstract

Questão 6

Questão
Static variables are shared by:
Responda
  • 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.

Questão 7

Questão
A constructor
Responda
  • Must have arguments
  • Cannot be the same as the class
  • Creates and object of the class
  • Has a return type based on the class

Questão 8

Questão
Static methods
Responda
  • Must have a return type
  • Cannot access instance variables
  • Can access instance variables
  • Must not have a return type

Semelhante

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