Question 1
>>
<<
+
=
Good Job!
Oops!
Answer :: (B) EXPLANATION : The << operator is overloaded for the cout object.
Please login to submit your explanation
You can check your performance of this question after Login/Signup
Start
Question 2
Inheritance
Overriding
Overloading
Encapsulation
Answer :: (B) EXPLANATION :
Method Overriding is the function which is used to describe the situation,when a function in base class is redefined in the inherited class.
Question 3
By misspelling the name
There might be two or more functions with the same name
There might be two or more functions with equally appropriate signatures
None of these
Answer :: (B) EXPLANATION : The call to an overloaded function can be ambiguous if the two or more functions have the same name and same function signature.
Question 4
Binary search tree
AVL tree
Completely balanced tree
Heap
A max-heap is a complete binary tree in which the value in each internal node is greater than or equal to the values in the children of that node.
Question 5
Virtual polymorphism
Transient polymorphism
Ad-hoc polymorphism
Pseudo polymorphism
Ad hoc polymorphism is a kind of polymorphism in which polymorphic functions can be applied to arguments of different types, because a polymorphic function can denote a number of distinct and potentially heterogeneous implementations depending on the type of argument(s) to which it is applied.
Question 6
adhoc polymorphism
imperative polymorphism
predicative polymorphism
inclusion polymorphism
Answer :: (B) EXPLANATION : Imperative polymorphism is not an valid type of polymorphism.
Option B
option b
Question 7
[]
->
*
?:
Answer :: (D) EXPLANATION : The "?:" (Ternary operator) cannot be overloaded.
option c
Question 8
Operator overloading
Function overloading
Templates
All of the above
Answer :: (D) EXPLANATION : Function Overloading,Operator Overloading,Templates all are the examples of static polymorphism.
Question 9
Overload
Operator
Friend
Override
Answer :: (B) EXPLANATION : Operator keyword is used to overload an operator.
Question 10
must be a member function
must be a non member function
can be both (A) & (B) above
cannot be overloaded
Answer :(C) EXPLANATION : The << operator overloaded in a class must be a both member and non-member function.
Please login to report
Buy TCS NQT Paid Materials
Join TCS NQT Online Classes
Login/Signup
Personalized Analytics only Availble for Logged in users
Analytics below shows your performance in various Mocks on PrepInsta
Your average Analytics for this Quiz
Rank
-
Percentile
0%
Completed
0/0
Accuracy
July 14, 2019
Login/Signup to comment
Login/Signup to comment