Exam 12: Separate Compilation and Namespaces

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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

Free
(Multiple Choice)
4.7/5
(37)
Correct Answer:
Verified

E

In order to create a namespace called student, you use

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

A

In the implementation file for a class name myClass, you have the following statement: void myClass::display) { //code here } What does the :: mean here?

Free
(Short Answer)
4.8/5
(35)
Correct Answer:
Verified

that display is part of the class myClass

cin and cout are part of the ________________ namespace.

(Short Answer)
4.9/5
(40)

A namespace is

(Multiple Choice)
4.8/5
(36)

All the code between #ifndef MYCLASS_H And #endf Is ____________ if MYCLASS_H is defined.

(Multiple Choice)
4.9/5
(44)

:: is called the ___________________

(Short Answer)
4.7/5
(32)

The statement using std::cin is called a ______________

(Short Answer)
4.7/5
(47)

All names are defined in some namespace

(True/False)
4.9/5
(33)

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

(Multiple Choice)
4.8/5
(31)

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

(Short Answer)
4.8/5
(39)

All code is in some namespace.

(True/False)
4.7/5
(35)

Which file name will end in a .cpp?

(Multiple Choice)
4.8/5
(37)

The unspecified namespace is named _________.

(Short Answer)
5.0/5
(41)

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

(True/False)
4.8/5
(44)

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

(Multiple Choice)
4.8/5
(41)

In order to make a user-defined ADT available that is defined in the file myfile.h, you would

(Multiple Choice)
4.9/5
(36)

Which file name will end in a .h?

(Multiple Choice)
4.8/5
(35)

cin and cout are defined in the _________ namespace

(Multiple Choice)
4.8/5
(43)

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.8/5
(40)
Showing 1 - 20 of 41
close modal

Filters

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