Exam 12: Separate Compilation and Namespaces
Exam 1: Introduction to Computer and C Programming55 Questions
Exam 2: C++ Basics54 Questions
Exam 3: More Flow of Control44 Questions
Exam 4: Procedural Abstraction and Functions That Return a Value51 Questions
Exam 5: Functions for All Sub Tasks53 Questions
Exam 6: Io Streams As an Introduction to Objects and Classes51 Questions
Exam 7: Arrays34 Questions
Exam 8: Strings and Vectors63 Questions
Exam 9: Pointers and Dynamic Arrays40 Questions
Exam 10: Defining Classes50 Questions
Exam 11: Friends, overloaded Operators, and Arrays in Classes49 Questions
Exam 12: Separate Compilation and Namespaces38 Questions
Exam 13: Pointers and Linked Lists51 Questions
Exam 14: Recursion43 Questions
Exam 15: Inheritance53 Questions
Exam 16: Exception Handling47 Questions
Exam 17: Templates33 Questions
Exam 18: Standard Template Library57 Questions
Select questions type
The global namespace and the unnamed namespace are the same.
Free
(True/False)
4.8/5
(42)
Correct Answer:
False
Classes must always be defined in separate files
Free
(True/False)
4.8/5
(36)
Correct Answer:
False
The identifier used in the #ifndef directive should be
Free
(Multiple Choice)
4.9/5
(30)
Correct Answer:
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)
The statement using namespace std and the statement using std::cin are the same.
(True/False)
4.9/5
(31)
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)
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)
Showing 1 - 20 of 38
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)