| Other OOPS Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is a virtual class? | Cap-Gemini | 1 |
| Why and when is a virtual destructor needed? | | 2 |
| When is it necessary to use member-wise initialization
list in C++? | | 1 |
| What is Inheritance, Multiple Inheritance, Shared and
Repeatable Inheritance? | Accenture | 3 |
| how to create thread in java? | Infosys | 10 |
| the difference between new and malloc | Siemens | 3 |
| Does c++ support multilevel and multiple inheritance? | Wipro | 5 |
| What is the outcome of the line of code "cout<<abs(-
16.5);"?
1) 16
2) 17
3) 16.5
| TCS | 10 |
| What is the difference between pass by reference and pass by
value? | TCS | 6 |
| Explain polymorphism? What r the types of polymorphism?
pls give examples? | HCL | 2 |
| When a private constructer is being inherited from one
class to another class and when the object is instantiated
is the space reserved for this private variable in the
memory?? | Honeywell | 12 |
| What is the difference between an object and a class? | | 2 |
| different types of castings | Siemens | 3 |
| Can we have a private virtual method ? | Ness-Technologies | 5 |
| What will happen when the following code is run:
int x;
while(x<100)
{
cout<<x;
x++;
}
1) The computer will output "0123...99"
2) The computer will output "0123...100"
3) The output is undefined
| | 3 |
| what is the use of mutable key word | HCL | 2 |
| What is Method overloading? | | 4 |
| What is R T T I ? | Ness-Technologies | 3 |
| Write a macro for swapping integers | | 3 |
| how to swap to variables without using thrid variable in java? | | 3 |
| |
| For more OOPS Interview Questions Click Here |