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.


How does make determine the default target?

  1. It looks for the target named 'default'

  2. It builds the target with the most dependencies

  3. It selects the first target in the makefile

  4. It prompts the user at runtime

The correct answer is: It selects the first target in the makefile

B is incorrect because make does not consider the number of dependencies when selecting the default target. Instead, it prioritizes the order of targets as they appear in the makefile, making C the correct answer. D is also incorrect because make does not require user input to determine the default target, so it does not prompt the user at runtime.