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 3 fuera de 17 páginas
Examen

COP 3330 EXAM 1 CORE PROGRAMMING FUNDAMENTALS AND C.pdf

Document preview thumbnail
Vista previa 3 fuera de 17 páginas

COP 3330 EXAM 1 CORE PROGRAMMING FUNDAMENTALS AND C.pdf

Vista previa del contenido

COP 3330 EXAM 1 CORE PROGRAMMING
FUNDAMENTALS AND C++ BASICS REVIEW
2026

◉ There may be more than one correct answer. When you define a
C++ class so that the result is an ADT, which of the following remarks
about whether to make a member variable or function public or
private are correct?
a. Don't make member variables public.
b. Make them all public. It simplifies life and makes things more
efficient to be able access members anywhere.
c. Make all member functions public.
d. There are some member functions that shouldn't be public, but
most should be public..
Answer: a. Don't make member variables public
d. There are some member functions that shouldn't be public, but
most should be public.


◉ The following definition of the structure variables of type
myStruct s and t could be made using several definitions using the
structure tag.
struct myStruct
{

,int i;
double d;
} s, t;
True or False.
Answer: True


◉ There may be more than 1 correct answer.
Concerning nested classes, which of the following are true?
a. The inner class must always be public
b. The inner class is within the scope of the outer class.
c. Qualification by the outer class name with the scope resolution
operator is necessary to use the inner class outside the outer class.
d. A local class can contain static members.
e. You can define a class within a class..
Answer: b. The inner class is within the scope of the outer class.
c. Qualification by the outer class name with the scope resolution
operator is necessary to use the inner class outside the outer class.
e. You can define a class within a class.


◉ There may be more than 1 correct answer.
A constructor ....
a. can only be used to initialize

, b. can do anything other method can do
c. must initialize all member variables
d. usually initializes all or most member variables.
Answer: b. can do anything any other method can do
d. usually initializes all, or most, member variables.


◉ A constructor can be called implicitly or explicitly. (Implicitly
means the compiler did it for you.) In the interest of uniformity in
answers, please use classA; for your examples.
True or False.
Answer: True


◉ size and capacity of a vector are two names for the same thing.
True or False.
Answer: False


◉ If we use an out of range index with a vector, there be an error
message from the compiler.
True or False.
Answer: False


◉ There may be more than 1 correct answer.

Información del documento

Subido en
3 de agosto de 2026
Número de páginas
17
Escrito en
2026/2027
Tipo
Examen
Contiene
Preguntas y respuestas
$13.99

¿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.
EddieJessup
3.0
(1)
Vendido
16
Seguidores
1
Artículos
7349
Última venta
2 días 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