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.


In the provided makefile example, which suffixes are explicitly mentioned?

  1. .exe and .cpp

  2. .o and .c

  3. .lib and .dll

  4. .h and .cpp

The correct answer is: .exe and .cpp

In this specific makefile example, the only explicitly mentioned suffixes are .exe and .cpp. Even though other suffixes such as .o and .c are commonly used in makefiles, they are not mentioned in this specific example. Similarly, .lib and .dll are also not mentioned, even though they are valid suffixes for libraries in some programming languages. Option D, .h and .cpp, are not suffixes in this context, but rather file extensions used to differentiate between header and source files. Therefore, A is the only correct answer.