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...

Name a method to sync multiple angles

What will be an ideal response?

Computer Science & Information Technology

Consider the following function definition:

``` void tripler(int& n) { n = 3*n; } ``` Given this definition, which of the following are acceptable function calls? int a[3] = {3,4,5}, number = 2; a) tripler(a[2]); b) tripler(a[3]); c) tripler(a[number]); d) tripler(a); e) tripler(number);

Computer Science & Information Technology