• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 6 páginas
Examen

CS52 Chapter 12 – Quiz Latest Update

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

CS52 Chapter 12 – Quiz Latest Update ...

Vista previa del contenido

CS52 Chapter 12 – Quiz Latest Update



A namespace is
a. a collection of name definitions

b. using std

c. used to distinguish between identical names

d. All of the above

e. A and C - ANSWER e. A and C

A using directive that appears inside a set of braces applies - ANSWER
Only to that block

In order to create a namespace called student, you use " - ANSWER
namespace student
{
//code goes here
}

"
In order to hide functions that are defined in the implementation file, they
should be part of the ________ namespace. - ANSWER unnamed

All code is in some namespace. - ANSWER TRUE

ADTs should be in separate files because

, a. This promotes information hiding

b. This promotes data abstraction

c. This promotes software reusability

d. This results in faster recompilation

e. All of the above - ANSWER e. All of the above

If you want to only use cin and cout (but no other names) from the std
namespace, you would

a. using std::cin;
using std::cout;

b. not be able to do it.

c. cin and cout are not in the std namespace

d. always have to say std::cin and std::cout

e. Either A or D - ANSWER e. Either A or D

A using directive that appears inside a set of braces applies - ANSWER
only to that block

What is the difference between an ADT and a class in C++? - ANSWER In
an ADT, the user does not have access to the implementation details.

In order to make a user-defined ADT available that is defined in the file
myfile.h, you would - ANSWER #include "myfile.h"

A using directive that is at the start of the file - ANSWER applies to the
entire file.

If you have a class defined in separate files, and change the way a class is
defined, which files need to be re-compiled? - ANSWER The
Implementation

Información del documento

Subido en
20 de octubre de 2026
Número de páginas
6
Escrito en
2026/2027
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.
Zayla
3.2
(20)
Vendido
160
Seguidores
13
Artículos
18292
Última venta
1 día 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