• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 6 pages
Exam (elaborations)

CS52 Chapter 12 – Quiz Latest Update

Document preview thumbnail
Preview 2 out of 6 pages

CS52 Chapter 12 – Quiz Latest Update ...

Content preview

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

Document information

Uploaded on
October 20, 2026
Number of pages
6
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$14.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Zayla
3.2
(20)
Sold
160
Followers
13
Items
18298
Last sold
1 day ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions