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 types of storage allocation modifiers are mentioned in the text?

  1. Static, register, and global

  2. Dynamic, automatic, and constant

  3. Global, extern, and mutable

  4. Public, private, and protected

The correct answer is: Static, register, and global

In this question, the text is referring to storage allocation modifiers for variables, which determine where and how they are stored in memory. While all the options mentioned are modifiers, only option A (static, register, and global) relates to storage allocation. Option B (dynamic, automatic, and constant) refers to variable types, option C (global, extern, and mutable) refers to type qualifiers and option D (public, private, and protected) refers to access modifiers. Thus, they are incorrect in the context of storage allocation modifiers.