Answer the following questions true (T) or false (F)
1. A namespace is a collection of name definitions such as class definitions, variable definitions and function definitions used to permit the same name, or names, to be used both in a library and in your own code.
2. In C++, a compilation unit is a class or function.
1. True
Explanation: By qualifying a name from a namespace with the namespace name and the scope resolution operator, the client can specify the name from the namespace.
2. False
Explanation: A C++ compilation unit is the file. A file may contain the contents of include files (files that are present by way of #include directives), global namespace function and class definitions, an unnamed namespace, and possibly one or more named namespaces.
You might also like to view...
When you ________ a slide, your content will be kept as large as possible
A) Size to Fit B) Minimize C) Maximize D) Ensure Fit
To support roaming across a wireless 802.11g network, each access point should be configured to use which of the following?
A. The same channel B. The same frequency C. The same SSID D. CSMA/CD