Exam 12: Separate Compilation and Namespaces

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The global namespace and the unnamed namespace are the same.

Free
(True/False)
4.8/5
(42)
Correct Answer:
Verified

False

Classes must always be defined in separate files

Free
(True/False)
4.8/5
(36)
Correct Answer:
Verified

False

The identifier used in the #ifndef directive should be

Free
(Multiple Choice)
4.9/5
(30)
Correct Answer:
Verified

C

If a name is defined in an unnamed namespace in a different compilation unit,it may not be accessed outside of that compilation unit.

(True/False)
4.9/5
(31)

The file that contains the definition of the class is called the _____________

(Short Answer)
4.8/5
(34)

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?

(Multiple Choice)
4.8/5
(50)

Names that are defined outside of a namespace are part of the unnamed namespace

(True/False)
4.9/5
(30)

A using directive that is at the start of the file

(Multiple Choice)
4.7/5
(43)

ADTs should be defined and implemented in separate files

(True/False)
4.9/5
(42)

cin and cout are part of the ________________ namespace.

(Short Answer)
5.0/5
(41)

In order to create a namespace called student,you use

(Multiple Choice)
4.8/5
(40)

In the statement std::cin,what does the :: mean?

(Short Answer)
4.9/5
(42)

The statement using std::cin is called a ______________

(Short Answer)
4.7/5
(34)

The statement using namespace std and the statement using std::cin are the same.

(True/False)
4.9/5
(31)

You may not use multiple namespaces in the same program.

(True/False)
4.8/5
(46)

If you have a class defined in separate files,and change the main program,which files need to be re-compiled?

(Multiple Choice)
4.9/5
(28)

cin and cout are defined in the _________ namespace

(Multiple Choice)
4.9/5
(29)

In order to hide functions that are defined in the implementation file,they should be part of the ______________ namespace.

(Multiple Choice)
4.8/5
(42)

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

(Multiple Choice)
4.9/5
(34)

Which file name will end in a .h?

(Multiple Choice)
4.8/5
(35)
Showing 1 - 20 of 38
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)