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 coding principle is echoed in the text regarding initial programming steps?

  1. Make it work, then make it right

  2. Focus on optimization from the start

  3. Ignore warnings during initial coding

  4. Design first, code second

The correct answer is: Make it work, then make it right

Throughout the initial programming steps, the focus should be on making the code function properly, rather than trying to optimize or perfect it. By focusing on making it work first and then making it right, there is a better understanding of the functionality and potential issues within the code, allowing for more efficient and effective optimization later on. Ignoring warnings or focusing on design before coding may result in a code that does not work properly, causing potential issues in the future. Therefore, the correct principle to follow during initial programming steps is to make it work first before trying to make it perfect.