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 directive tells make to watch out for certain file extensions?

  1. .SUFFIXES

  2. .WATCH

  3. .EXTENSIONS

  4. .FILES

The correct answer is: .SUFFIXES

The ".SUFFIXES" directive is used in a makefile to specify a list of suffixes that make will consider when deciding which files are out of date and need to be recompiled. Option B, ".WATCH", and option D, ".FILES", do not exist as make directives and are therefore incorrect choices. Option C, ".EXTENSIONS", may seem like the correct answer, but it does not correspond to any make directive. This highlights the importance of carefully reading and understanding the given question and options in order to choose the correct answer.