Exam 12: Separate Compilation and Namespaces

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

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)

The unspecified namespace is named _________.

(Short Answer)
5.0/5
(41)

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)

What is the difference between an ADT and a class in C++?

(Multiple Choice)
4.9/5
(33)

Connecting the application and implementation files together to form an executable file is called

(Multiple Choice)
4.7/5
(34)

We use the #ifndef,#define,and #endif

(Multiple Choice)
4.9/5
(29)

The file that contains the definitions of the member functions of a class is called the ________________

(Short Answer)
4.9/5
(38)

The statement using namespace std is called _______________.

(Short Answer)
5.0/5
(49)

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

(Multiple Choice)
4.8/5
(36)

All names are defined in some namespace

(True/False)
4.9/5
(35)

A using directive that appears inside a set of braces applies

(Multiple Choice)
4.8/5
(35)

Which file name will end in a .cpp?

(Multiple Choice)
4.9/5
(31)

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)

A namespace is

(Multiple Choice)
4.9/5
(33)

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)

All code is in some namespace.

(True/False)
4.9/5
(39)

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
close modal

Filters

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