Quiz on C++ Namespaces



1. What is the primary purpose of namespaces in C++?
2. Which keyword is used to define a namespace in C++?
3. How do you access a member of a namespace?
4. What does the 'using' directive do with namespaces?
5. Is it possible to define multiple namespaces with the same name?

Advertisements