Multiple choice

Which of the following statements is false regarding to namespace in C++ programming?

  1. C++ provides declaring an alias name for a given namespace.

  2. Namespace can be declared without any name or even unnamed.

  3. Namespace defination can be extended over multiple files.

  4. Instance variable can be created for a namespace.

  5. Namespace defination should not be terminated by a semicolon.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

 We cant create instance variable's for namespace. There are not similar to classes in C++.

This option is false statement. Hence this option is the correct choice to be choosen as a false statement.