Answer the following statements true (T) or false (F)

1. Any global declarations or definitions can be placed in a namespace.
2. The include statement, #include “file.h” looks first in the system defined
directory for file.h then, if the file is not found, it looks in the user’s current
directory. (Windows PC and Macintosh users sometimes use “folder” for what I call
“directory”.)
3. The include statement, #include looks in the system defined
directory for the file, file.h. (Windows PC and Macintosh users sometimes use
“folder” for what I call “directory”.)
4. 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.
5. In C++, a compilation unit is a class or function.


1. True
2. False
3. True
4. True
5. False

Computer Science & Information Technology

You might also like to view...

The Back button in a Web browser takes you to the home page of the last Web site you visited

Indicate whether the statement is true or false

Computer Science & Information Technology

Files keep related files together so that they are easier to find when needed

Indicate whether the statement is true or false

Computer Science & Information Technology

You can save a presentation as a Word document to use as a handout, or create other documents using the text and slides from the presentation.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

If nums is a two-dimensional integer array, ____ refers to element nums[0][0].

A. *nums B. *(*nums) C. *(&nums) D. &(*nums)

Computer Science & Information Technology