| Other OOPS Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| When is a memory allocated to a class? | | 3 |
| What is the difference between const int *ptr and int const
*ptr??? | | 2 |
| why destructor is not over loaded? | | 2 |
| How is the using() pattern useful? What is IDisposable? How
does it support deterministic finalization?
| IntraLogic | 1 |
| What is the Advantage of Interface over the Inheritance in
OOPS? | | 2 |
| write a program for function overloading? | | 4 |
| Which is faster post increment or pre increment ? and in
which cases should u use either - to increase speed? | EA-Electronic-Arts | 2 |
| what is a virtual class? | Cap-Gemini | 1 |
| What does the code "cout<<(0==0);" print?
1) 0
2) 1
3) Compiler error: Lvalue required
| | 5 |
| WILL I GET A guaranteed JOB AFTER DOING bsc()IT) and GNIIT
from an NIIT CENTRE?? | Biocon | 1 |
| What is abstraction? | | 6 |
| what is virtual function in c++ | | 4 |
| //what is wrong with the programme??
#include<iostream.h>
template <class first>
class dd
{
first i;
public:
void set();
void print();
};
void dd< first>:: set()
{
cin>>i;
}
void dd< first>::print()
{
cout<<"\n"<<i;
}
void main()
{
dd <char>g;
g.set();
g.print();
} | | 1 |
| What is virtual constructors/destructors? | | 3 |
| When is it necessary to use member-wise initialization
list in C++? | | 1 |
| We have a scale and 7 balls. 1 ball is heavier than all the
rest. How to determine the heaviest ball with only 3
possible weighing attempts?
| IBM | 3 |
| what is abstract class ?
when is used in real time ?
give a exp
| | 2 |
| When is an object created and what is its lifetime? | IBM | 1 |
| What do you mean by binding of data and functions? | | 1 |
| What is R T T I ? | Ness-Technologies | 3 |
| |
| For more OOPS Interview Questions Click Here |