| Other OOPS Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Definition of Object Oriented Programming in single line? | TCS | 14 |
| What is namespace? | | 6 |
| 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 an object? | HCL | 7 |
| WHEN A COPY CONSTER IS CALL ?
| | 1 |
| what is the function of 'this' operator ? | | 4 |
| polymorphism means? | BFL | 2 |
| What is Object and Class? What are the differences between
them? | | 3 |
| what is difference b/w object based and object oriented
programming language? | Infosys | 2 |
| What are virtual functions? | | 2 |
| What is command routing in MFC | GE | 1 |
| When is it necessary to use member-wise initialization
list in C++? | | 1 |
| Tell me the scenario,Where we can use interfaces or
Abstract class.And What is the difference between
interfaces and abstract class? | | 3 |
| What is the output of the following code:
int v()
{
int m=0;
return m++;
}
int main()
{
cout<<v();
}
1) 1
2) 0
3) Code cannot compile
| | 3 |
| what is meant by files? | Infosys | 2 |
| what is the difference between <stdio.h>and "stdio.h"? | | 2 |
| What is public, protected, private? | Satyam | 4 |
| In multilevel inheritance constructors will be executed
from the .... class to ... class | | 1 |
| What is the difference between an object and a class? | | 2 |
| what is the basic concept of inheritance? | | 3 |
| |
| For more OOPS Interview Questions Click Here |