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
Why will the following code not compile?
Namespace ns1
{
Void print);
Void display1){};
}
Namespace ns2
{
Void print);
Void display2){};
}
Int main)
{
Using namespace ns1;
Using namespace ns2;
Display1);
Display2);
Print);
Return 0;
}
(Multiple Choice)
4.9/5
(36)
In the implementation file for a class name myClass,you have the following statement:
void myClass::display)
{
//code here
}
What does the :: mean here?
(Short Answer)
4.7/5
(36)
Connecting the application and implementation files together to form an executable file is called
(Multiple Choice)
4.7/5
(34)
The file that contains the definitions of the member functions of a class is called the ________________
(Short Answer)
4.9/5
(38)
The file that contains the main portion of your program is called
(Multiple Choice)
4.8/5
(36)
A using directive that appears inside a set of braces applies
(Multiple Choice)
4.8/5
(35)
All the code between
#ifndef MYCLASS_H
And
#endf
Is ____________ if MYCLASS_H is defined.
(Multiple Choice)
4.9/5
(38)
In a program with no user defined namespaces,all names are defined in the global namespace
(True/False)
4.8/5
(34)
If you have a class defined in separate files,and change the way a class is defined,which files need to be re-compiled?
(Multiple Choice)
4.9/5
(44)
In order to make a user-defined ADT available that is defined in the file myfile.h,you would
(Multiple Choice)
4.8/5
(45)
Showing 21 - 38 of 38
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)