CPSC 335 Quiz 4

Answer the following questions with a few sentences.

  1. What is the purpose of namespaces?
  2. Can you have multiple namespace blocks which use the same name?
  3. What does declaring a local variable as static do?
  4. What's the difference between using [] and .at() to access elements in a vector?
  5. Why should std::vector<bool> be avoided?