100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

OBJECT ORIENTED PROGRAMMING EXAM 1 QUESTIONS AND ANSWERS

Puntuación
-
Vendido
-
Páginas
29
Grado
A+
Subido en
11-06-2025
Escrito en
2024/2025

OBJECT ORIENTED PROGRAMMING EXAM 1 QUESTIONS AND ANSWERS C. State and behavior - CORRECT ANSWERReal world objects share which two characteristics? a. Inheritance and polymorphism b. Classes and interfaces c. State and behavior d. Times and dates

Mostrar más Leer menos
Institución
OBJECT ORIENTED PROGRAMMING
Grado
OBJECT ORIENTED PROGRAMMING










Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
OBJECT ORIENTED PROGRAMMING
Grado
OBJECT ORIENTED PROGRAMMING

Información del documento

Subido en
11 de junio de 2025
Número de páginas
29
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

OBJECT ORIENTED PROGRAMMING EXAM 1 QUESTIONS AND
ANSWERS
C. State and behavior - CORRECT ANSWER✅✅✅Real world objects share which two characteristics?

a. Inheritance and polymorphism

b. Classes and interfaces

c. State and behavior

d. Times and dates



D. Member Variables - CORRECT ANSWER✅✅✅In object oriented programming how is state
represented?



a. Functions

b. Methods

c. Global variables

d. Member Variables



C. Serve as the blueprint of how objects will be created - CORRECT ANSWER✅✅✅What is the
purpose of a class in object oriented programming?



a. To create a data structure for functions

b. To create an interface for implementation

c. Serve as the blueprint of how objects will be created

d. To create a data structure for variables



A. True - CORRECT ANSWER✅✅✅Based on best practices and how the Java API Library is
implemented a class should start with a capital letter (i.e. Dog versus dog).



a. True

b. False

,B. False - CORRECT ANSWER✅✅✅When defining a class, member variables are included within the
class's open/close curly braces (i.e. {}) and methods are defined outside of the open/close curly braces.



a. True

b. False



A. True - CORRECT ANSWER✅✅✅Information hiding is accomplished via encapsulation



a. True

b. False



D. Dog puppy = new Dog(); - CORRECT ANSWER✅✅✅Which of the following is the correct code for
instantiating an instance of class Dog?



a. Dog puppy = Dog;

b. Dog puppy;

c. Dog puppy = Dog();

d. Dog puppy = new Dog();



C. puppy - CORRECT ANSWER✅✅✅Which part of the following statement is the instance or the
created object?



Dog puppy = new Dog();



a. Dog();

b. new

c. puppy

d. Dog

, B. Constructor - CORRECT ANSWER✅✅✅In the following statement, Dog puppy = new Dog();, what
is "Dog()" called?



a. Maker

b. Constructor

c. Creator

d. malloc



1. Superclass

2. Subclass - CORRECT ANSWER✅✅✅Regarding inheritance the existing class is called ____1____
and the new class is called ____2____.



A. 1 - CORRECT ANSWER✅✅✅How many superclasses can a subclass have?



a. 1

b. 2

c. 3

d. unlimited



B. unlimited - CORRECT ANSWER✅✅✅How many subclasses can a superclass have?



a. 3

b. unlimited

c. 2

d. 1



B. Access level modifier - CORRECT ANSWER✅✅✅Given the class definition



public class KeyTerminology{}
$10.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
STANGRADES Stanford University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
46
Miembro desde
1 año
Número de seguidores
1
Documentos
9384
Última venta
8 horas hace
STAN-GRADES

EXCELLENCY IN ACADEMIC MATERIALS

3.2

10 reseñas

5
3
4
1
3
3
2
1
1
2

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes