Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.ADTs should be in separate files because Select one: a. this promotes informat

ID: 3682361 • Letter: 1

Question

1.ADTs should be in separate files because

Select one:

a. this promotes information hiding.

b. this promotes data abstraction.

c. this promotes software reusability.

d. this results in faster recompilation.

e. All of these.

f. None of these.

2. A using directive that is at the start of the file

Select one:

a. is a syntax error.

b. applies to the entire file.

c. applies only to the first block.

d. hides all other namespace directives.

3.A namespace is

Select one:

a. a collection of name definitions.

b. using std.

c. used to distinguish between identical names.

d. All of these.

e. a collection of name definitions and used to distinguish between identical names

4. The file that contains the main portion of your program is called

Select one:

a. the implementation file.

b. the interface file.

c. the application file.

d. the specification file

5.

cin and cout are defined in the ________ namespace.

Select one:

a. iostream

b. std

c. standard

d. global

6.

If you have a class defined in separate files, and change the way a member function is defined (the body of the function), which files need to be re-compiled?

Select one:

a. the interface

b. the application

c. the implementation

d. all files

e. the application and the implementation

Explanation / Answer

1. e. All of these.
2. b. applies to the entire file.
3. d. All of these.
4. c. the application file.
5. b. std
6. c. the implementation