C++ Inheritance Answer : Inheritance is one of the key features of Object-oriented programming… View Answer
Finding all substrings of a given number that are divisible by 11 Answer : Query(l, r) : find if the sub-string between the indices l and r…. View Answer
What is the best way to sort an array of 0s and 1s ? Answer : Sort an array elements means arrange… View Answer
Find Largest number from set of given numbers ? Answer : Find number of digits in the largest number. Let us assume number of digits be n… View Answer
Find the wrong statement about Abstract Class ? Answer : B. We can’t create pointers to an abstract class View Answer
C++ supports run time polymorphism with the help of virtual functions, which is called ______ binding Answer : A. Dynamic View Answer
A virtual function that has no definition within the base class is called ? Answer : A. Pure virtual function View Answer
Which of the following statements about virtual base classes is correct ? Answer : B. It is used to avoid multiple copies of base class in derived class. View Answer
Which of the following concepts means wrapping up of data and functions together ? Answer : B. Encapsulation View Answer
Which of the following can access private data members or member functions of a class ? Answer : C. Any member function of that class. View Answer
Which of the following access specifiers is used in a class definition by default ? Answer : C. Private View Answer
What is pure virtual function in C++ ? Answer : A virtual function will become pure virtual function… View Answer
State whether the following statements about inheritance are True or False. Answer : C. True, True View Answer
In c++ how are protected members of a base class accessed in derived class when inherited privately ? Answer : A. Privately View Answer
Which of the following concepts of OOPS means exposing only necessary information to client ? Answer : C. Data Hiding View Answer
Write a function that takes an integer array as an input and find the largest number in the array. You cannot sort array or use any API or searching needs ? Answer : #include… View Answer