Mastering C++: A Comprehensive Quiz Based on 'Thinking in C++'

Disable ads (and more) with a membership for a one time $2.99 payment

Test your C++ skills with our quiz based on Bruce Eckel's 'Thinking in C++'. Dive into object-oriented programming, advanced topics, and fundamentals. Perfect for learners and experts alike. Assess your knowledge and become a C++ master!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What feature provides control over names in C++?

  1. Inline functions

  2. Templates

  3. The static keyword and namespaces

  4. Polymorphism

The correct answer is: The static keyword and namespaces

The static keyword and namespaces in C++ help control naming by providing the ability to declare variables and functions to only be accessible within a particular scope or namespace. This allows for better organization and avoids potential naming conflicts. Inline functions and templates do not have this control over names. Polymorphism, while a powerful feature of C++, does not specifically address control over names. Therefore, the correct answer is C.