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.


Why can't C compilers perform late binding?

  1. Because they don't support object-oriented programming

  2. They don't have the 'virtual' keyword

  3. C compilers only support early binding for function calls

  4. All of the above

The correct answer is: C compilers only support early binding for function calls

C compilers only support early binding for function calls, which means that function calls are resolved at compile time rather than at runtime. This does not allow for late binding, which is when function calls are resolved at runtime. Therefore, options A, B, and D are incorrect because they do not fully explain why C compilers cannot perform late binding. Ultimately, it is because C compilers do not support late binding due to their limitation in only supporting early binding.