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 4 fuera de 40 páginas
Examen

APSU CSCI 2010 FINAL EXAM ACTUAL QUESTIONS AND CORRECT ANSWERS GRADED A+

Document preview thumbnail
Vista previa 4 fuera de 40 páginas

APSU CSCI 2010 FINAL EXAM ACTUAL QUESTIONS AND CORRECT ANSWERS GRADED A+

Vista previa del contenido

APSU CSCI 2010 FINAL EXAM ACTUAL
QUESTIONS AND CORRECT ANSWERS
GRADED A+

⩥ This type of member variable may be accessed before any objects of
the class have been created..
Answer: Static


⩥ This operator may be used to assign one object to another.
Answer: =


⩥ C++ requires that a copy constructor's parameter be a(n).
Answer: Reference object


⩥ C++ allows you to redefine the way ________ work when used with
class objects..
Answer: Standard Operators


⩥ When objects contain pointers, it is a good idea to create an explicit
______ function.
Answer: Copy constructor

,⩥ A good reason for overloading an operator is to enable it to:.
Answer: work in its usual way, but with programmer-defined data types


⩥ When a class contains an instance of another class, it is known as.
Answer: Dynamic Composition


⩥ If you do not furnish one of these, an automatic memeberwise copy
will be performed when one object is assigned to another object.
Answer: Overloaded assignment operator


⩥ It is a good idea to make a copy constructor's parameters______by
specifying______keyword in the parameter list.
Answer: constant, const


⩥ A reason to overload the _____ is to write classes that have array-like
behaviors.
Answer: square brackets operator


⩥ If a member variable is declared ________, all objects of that class
have access to that variable..
Answer: static

,⩥ A member function that is declared_____, may not access any non-
static data members in the class.
Answer: static


⩥ This type of function is not a member of a class, but it has access to
the private members of the class.
Answer: Friend


⩥ This is a special function that is called whenever a new object is
created and initialized with another object's data.
Answer: Copy constructor


⩥ If you do not furnish one of these a default will be provided for you
by the compiler.
Answer: Copy constructor, constructor, destructor


⩥ When you redefine the way a standard operator works when it is used
with class objects, you have ________ the operator..
Answer: Overloaded


⩥ To overload the + operator, you would write a function named:.
Answer: operator+

, ⩥ This is a special built-in pointer that is available to a class's member
functions.
Answer: this pointer


⩥ Object composition is useful for creating this type of relationship
between classes.
Answer: has a


⩥ A(n)______operator can work with programmer-defined data types.
Answer: Overloaded


⩥ When you overload an operator, you cannot change the number of
_____ taken by the operator.
Answer: Operands


⩥ A(n) _____ informs the compiler that a class will be declared later in
the program.
Answer: forward declaration


⩥ In the following function header, FeerInches
FeetInches::operator++(int) the word (int) is known as a:.
Answer: Dummy parameter

Información del documento

Subido en
3 de julio de 2026
Número de páginas
40
Escrito en
2025/2026
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.
GradeGalaxy
4.2
(15)
Vendido
174
Seguidores
5
Artículos
56559
Última venta
8 horas 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