OOPS Interview Questions

20% of a 6 litre solution and 60% of 4 litre solution are mixed what the % of mixture of solution it is resulted into?

11842

in the following, A D B G E C F Each of the seven digits from 0,1,2,3,4,5,6,7,8,9 is: a)Represented by a different letter in abov fig: b)Positioned in the fig abov so tht A*B*C,B*G*E,D*E*F are equal. wch does g represents? C

4971

monkey starts climbing up a tree 20ft tall,each hour ,it hops 3ft and slips back by 2ft .how much time it wil tak to reach top of the tree?

41742

design class for linked list and include constructor,destructor,insert option. struct node { int node; struct node &ptr; }

HSBC,

3853

design class for linked list and include constructor,destructor,insert option. node of form struct node { int data; struct node &ptr; }

1600

What are the valid types of data that the main () can return in C/C++ language

6586

Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2080

Child cObj = new Parent() Wahts the output ?

Patni, TCS,

17215

What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

NIIT, SRA,

2149

What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

SRA,

2032

write a program to find 2^n+1 ?

CTS,

1595

write a program to find 2 power of a 5digit number with out using big int and exponent ?

1951

what is the difference between ERROR and EXCEPTION?

32683

what is pointers

8397

what is the main difference between sizeof() operator in c and c++

6018

can inline function declare in private part of class?

3713

624

630

What is oops concept with example?

622

What is encapsulation example?

598

655

How can you overcome the diamond problem in inheritance?

822

What is an interface in oop?

641

664

What is the real time example of encapsulation?

637

if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2821

Where is pseudocode used?

614

Why multiple inheritance is not possible?

643

Why is abstraction needed?

606

What is abstraction oop?

670