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 binding occurs at runtime in OOP languages?

  1. Early binding

  2. Late binding

  3. Dynamic binding

  4. Static binding

The correct answer is: Late binding

Runtime binding refers to the process of linking a specific method or function call to its implementation at runtime. In OOP languages, this is also known as late binding because the exact method or function to be executed is not determined until the program is actually running. This is in contrast to static binding, where the method call is linked to its implementation during compilation, and early binding, which is a type of static binding that occurs at compile time instead of runtime. Dynamic binding, on the other hand, refers to the ability to bind an object to its specific type at runtime, allowing for more flexibility and polymorphism in OOP languages. Therefore, the correct answer is B Late binding. Option A, Early binding, is incorrect because it refers to a type of static binding that occurs at compile time. Option C and D, Dynamic binding and Static binding, are incorrect because they are not specific to