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 keyword is used to indicate that members of a structure are accessible to everyone?

  1. private

  2. public

  3. protected

  4. external

The correct answer is: public

The keyword "public" is used to indicate that members of a structure are accessible to everyone. The keyword "private" restricts access to only within the structure or class itself, while "protected" allows access to members within the class and its subclasses. "External" is not a valid keyword in this context and should not be used to indicate accessibility.