Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 2 fuera de 10 páginas
Examen

COP 3330 Exam 1 Exam with complete solutions latest version.

Document preview thumbnail
Vista previa 2 fuera de 10 páginas

COP 3330 Exam 1 Exam with complete solutions latest version.

Vista previa del contenido

BRAINSCAPE1




COP 3330 Exam 1 Exam with
complete solutions latest version




State and behavior - CORRECT ANSWER-Real world objects share which two
characteristics?

In object oriented programming how is state represented? - CORRECT ANSWER-
Member variables

Methods - CORRECT ANSWER-in object oriented programming how is behavior
represented?

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

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).

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.

True - CORRECT ANSWER-Information hiding is accomplished via encapsulation

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

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

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

1 - CORRECT ANSWER-How many superclasses can a subclass have ( in Java)?

unlimited - CORRECT ANSWER-How many subclasses can a superclass have?
BRAINSCAPE1

, BRAINSCAPE1




Access level modifier - CORRECT ANSWER-Given the class definition

public class KeyTerminology{}

what is "public" called?

Inheritance - CORRECT ANSWER-What type of implementation behavior is the
following class definition doing?

public class SubclassDog extends Dog{}

extends - CORRECT ANSWER-When creating a subclass from a superclass what key
word must precede the existing superclass?

interface - CORRECT ANSWER-What type of object is the following code defining?

public interface IDog {}

implementing an interface - CORRECT ANSWER-What behavior is the following code
implementing?

public class DogTwo implements IDog {}

0 - CORRECT ANSWER-What is the minimum number of interfaces a class can
implement?

unlimited - CORRECT ANSWER-What is the maximum number of interfaces a class
can implement?

namespace for organizing classes and interfaces in a logical manner - CORRECT
ANSWER-What is the purpose of packages in Java as an object oriented programming
language?

Unlimited - CORRECT ANSWER-Which of the following is NOT the number of
operands an operator can perform specific operations on?
)1
)3
)2
) Unlimited

False - CORRECT ANSWER-Operators do NOT have precedence rules.

System.out.println() System.out.print() - CORRECT ANSWER-Which of the following
are ways to output to the console during runtime? Select all that apply.
) System.out.println()
) fprintf()
BRAINSCAPE1

Información del documento

Subido en
11 de noviembre de 2025
Número de páginas
10
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$14.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

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.
BRAINSCAPE1
4.4
(20)
Vendido
141
Seguidores
15
Artículos
11139
Última venta
1 semana hace



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