| Other OOPS Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Name an advantage of linked list over array? | IBM | 6 |
| What is multiple inheritance ? | Ness-Technologies | 8 |
| what is diff between .net 1.1 and .net 2.0 | | 3 |
| suppose A is a base class and B is the derved class. Both
have a method foo which is defined as a virtual method in
the base class. You have a pointer of classs B and you
typecast it to A. Now when you call pointer->foo, which
method gets called?
The next part of the question is, how does the compiler
know which method to call? | EA-Electronic-Arts | 2 |
| How is exception handling carried out in c++? | | 1 |
| In c++ there is only virtual destructors, no constructors. Why? | | 2 |
| What is friend function? | Wipro | 3 |
| Name an advantage of array over linked list?
| IBM | 11 |
| Should you protect the global data in threads? Why or why
not?
| IBM | 1 |
| In the following declaration of main, "int main(int argc,
char *argv[])", to what does argv[0] usually correspond?
1) The first argument passed into the program
2) The program name
3) You can't define main like that
| | 4 |
| How would you stop a class from class from being derived or
inherited. | Ness-Technologies | 7 |
| Write a macro for swapping integers | | 3 |
| What is abstraction? | | 5 |
| What do you mean by public, private, protected and friendly? | | 1 |
| What do you mean by inline function? | | 1 |
| how can we design a magic square in c++?or suggest me the
basic idea of it. | | 1 |
| What is an orthogonal base class? | | 1 |
| how to swap to variables without using thrid variable in java? | | 3 |
| What is the difference between and interface and an
abstract class ? | Ness-Technologies | 2 |
| what are the disadvantages of C++? | ATS | 2 |
| |
| For more OOPS Interview Questions Click Here |