The most asked questions in TCS/ Wipro/Infosys and other MNC. Palindrome: A string is called palindrome if its reverse of the string is the same as the original string. For Example: "GEEG", "LOOL","AABBBAA".
Exception is an abnormal behavior of the program during runtime. It will occur when the user gives input to the program something that is out of the scope.
A class is an abstract class if it will contain at least one virtual function. We can't create the object of the Abstract class because if we create the object of the abstract then we can also call the function of virtual that is virtual function has no definition. To stop the calling of virtual function c++ can create rule that is we cannot create an object of the abstract class.
A virtual function is a member function of the parent class that is defined by using the "virtual " keyword. These functions derived by the child class and call by the pointer or object of the parent class. And execute the derived class of the function.
Most asked question of MNC interview is Pattern(Half Pyramid,Full Pyramid,Inverted Pyramid).Here we add program with explanation.