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!

Practice this question and more.


Which practice is deemed as indicating an inexperienced programmer in the context provided?

  1. Using pointers extensively

  2. Abusing the 'this' keyword

  3. Utilizing recursion for simple tasks

  4. Neglecting the use of access specifiers

The correct answer is: Abusing the 'this' keyword

In the context of programming experience, abusing the 'this' keyword, option B, is often seen as an indication of an inexperienced programmer. This is because overuse of the 'this' keyword can lead to code that is difficult to read and maintain. Using pointers extensively (option A) can also be a sign of inexperience if they are used without proper understanding and can lead to unreliable code. Utilizing recursion for simple tasks (option C) is not necessarily indicative of inexperience, but can be seen as inefficient compared to other methods. Neglecting the use of access specifiers (option D) can also be a potential sign of inexperience as it can lead to security vulnerabilities and unintended access to data.