Computer Science Quiz: Writing Custom Classes

Descripción

Test sobre Computer Science Quiz: Writing Custom Classes, creado por Chris Fraser el 06/11/2014.
Chris Fraser
Test por Chris Fraser, actualizado hace más de 1 año
Chris Fraser
Creado por Chris Fraser hace más de 9 años
29
0

Resumen del Recurso

Pregunta 1

Pregunta
An object has...?
Respuesta
  • State and Behaviour.
  • Actions and Classes.
  • Methods and Code.

Pregunta 2

Pregunta
How many objects can a class have?
Respuesta
  • 234
  • 2
  • As many as we want
  • 100

Pregunta 3

Pregunta
What type of declarations need to be made by a class?
Respuesta
  • State and Behavior
  • Class and Object
  • Data and Method

Pregunta 4

Pregunta
What is the toString method?
Respuesta
  • A method that makes two strings.
  • A method that combines two strings.
  • A method that prints a string representation of an object.
  • A method that returns a string representation of an object.

Pregunta 5

Pregunta
What is a constructor?
Respuesta
  • A person who directs a choir or orchestra.
  • A person who builds buildings
  • A method used to set up an object upon its creation.
  • A method used to build a class.

Pregunta 6

Pregunta
How is a constructor called and how is it named?
Respuesta
  • It is called by java and is also named by java.
  • It is called by a line of code and is named by the author.
  • It is called by a line of code and shares the name of the class.
  • It is called via "new" and shares the name of the class.

Pregunta 7

Pregunta
A constructor can accept parameters if necessary.
Respuesta
  • True
  • False

Pregunta 8

Pregunta
What is the scope of a variable?
Respuesta
  • What the variable can apply to.
  • How many times the variable can be used.
  • The region of the program that the variable can be used within.
  • The accuracy of the variable.

Pregunta 9

Pregunta
What is an instance variable?
Respuesta
  • A variable that only is used once.
  • A copy of a variable that is given to each object.
  • A variable that only applies to one instance (object).
  • A copy of a variable that applies to all objects in a program.

Pregunta 10

Pregunta
A client should be aware of both the implementation details as well as the interface.
Respuesta
  • True
  • False
Mostrar resumen completo Ocultar resumen completo

Similar

Trigonometría
Ana Priego
Historia Argentina
Nicolas Ñancucheo
CÁLCULOS con [ 3 · 5 · 7 ]
JL Cadenas
MAPA METAL.
victorsquad99
Inglés - Vocabulario - Ropa
ausalgu
Estructura atómica. Modelos y Teorías
Jean Paul Arango
Sonido vs Ruido
mariajesus camino
LAS CLAVES DE LA ARGUMENTACION DE ANTHONY WESTON
revisorsur
Lexicología Jurídica
Alfonso Tester
ISLAM
Joan Sempere
Texto Narrativo
Diana Banda