Computer Science, asked by amithmanoj321, 5 hours ago

1. Which of the following statement is true? i) In Procedural programming languages,
all function calls are resolved at Compile time ii) In Object Oriented programming
languages, all function calls are resolved at Compile time
A. Neither I nor II
B. Il only
C. Both I and II
D. I only

Answers

Answered by kaursaini864
1
Answer: A
Explanation: Both statements are false because all the operators of C++ cannot be overloaded and the basic meaning of an operator cannot be changed, we can only give new meaning to an operator.
Answered by SamikshaDhere
0

Answer:

only I

Explanation:

For the given statement, only statement I is true while statement II is false.

Statement II should be, In object oriented programming languages, all function call are not resolved at the time of compiling but rather function calls in object oriented programming languages are resolved at runtime.

  • Procedural programming languages like C don't have the concept of polymorphism.
  • So in procedural programming languages, every function call gets resolved only at compile time.
  • But Object oriented programming languages supports the concept of polymorphism.
  • So, in object oriented programming languages, function calls don't get resolved at the time of program compiling.
  • Also, in object oriented programming languages, we create objects indirectly by calling constructors.
  • Due to this, function calls gets resolved during runtime of the program.

#SPJ2

Similar questions