All Exams Test series for 1 year @ ₹349 only
Question

Match List I with List II
List IList II
A. OverloadingI. Since function call is resolved during run time, the execution is Slow.
B. Early bindingII. Since function call is resolved during compilation time, the execution is much faster.
C. OverridingIII. Supports compile-time polymorphism.
D. Late BindingIV. Supports run-time polymorphism.

Choose the correct answer from the options given below:

The correct answer is
A-IV, B-I, C-III, D-II

Matching Programming Concepts: Overloading and Binding

This question requires matching specific programming terms related to function calls and polymorphism (List I) with their corresponding descriptions (List II). Understanding these concepts is crucial for object-oriented programming.

Explanation of Overloading and Run-time Polymorphism (A-IV)

A. Overloading is matched with IV. Supports run-time polymorphism.

This pairing connects the concept of function overloading with the characteristic of supporting run-time polymorphism, as per the provided answer key.

Explanation of Early Binding and Slow Execution (B-I)

B. Early binding is matched with I. Since function call is resolved during run time, the execution is Slow.

According to this match, early binding is linked to scenarios where function calls are resolved during runtime, leading to slower execution. This association is based on the specific descriptions provided in List II.

Explanation of Overriding and Compile-time Polymorphism (C-III)

C. Overriding is matched with III. Supports compile-time polymorphism.

This connection pairs function overriding with the ability to support compile-time polymorphism. This interpretation is specific to the context defined by the question's options and answer.

Explanation of Late Binding and Fast Execution (D-II)

D. Late Binding is matched with II. Since function call is resolved during compilation time, the execution is much faster.

This association connects late binding with the description that function calls resolved during compilation time result in faster execution. This match is derived from the provided options.

Final Matches Summary

The correct matching, according to the question's answer key, is:

  • A - IV
  • B - I
  • C - III
  • D - II

Mastering these concepts will help in writing efficient and maintainable code.

Was this answer helpful?

Important Questions from OOPs concept

  1. Let A be the base class in C++ and B be the derived class from A with protected inheritance. Which of the following statement is false for class B?

  2. Which of the following statements are true regarding C++?

    (a) Overloading a function gives the capability to an existing operator to operate on other data types.

    (b) Inheritance in object-oriented programming provides support to reusability.

    (c) When object of a derived class is defined, first the constructor of derived class is executed then constructor of a base class is executed.

    (d) Overloading is a type of polymorphism.

    Choose the correct option from those given below:
  3. Match List I with List II

    List IList II
    (Programming Paradigm)(Characteristic)
    A.ImperativeI.Declarative, clausal representation, theorem proving
    B.Object‐orientedII.Side‐effect free, declarative, expression evaluation
    C.LogicIII. Imperative, abstract data type
    D.FunctionalIV.Command‐based, procedural

    Choose the correct answer from the options given below :

  4. A member function can always access the data in _______, (in C++).

  5. Which of the following is not correct for virtual function in C++?

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App