OOPS Interview Questions
Questions Answers Views Company eMail

IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1575

INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1630

who is the father of OPPS

Infosys, TCS,

4 8760

create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.

CTS, Delhi University,

2 4703

what is cast operator?

Microsoft,

2 4931

when to use 'mutable' keyword and when to use 'const cast' in c++

TCS,

1642

why reinterpret cast is considered dangerous?

TCS,

1896

What are callback functions in c++

SoftTech,

1 3653

How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram

IBM,

2806

what is namespace? what are the uses of namespace?

1 3307

what is opps?why it is use in programming language?

Wipro,

2 5134

what is difference between String s=new String("vali"); String s="vali"

1 3237

what is Class in oops with example?

HCL,

4 5461

which feature are not hold visual basic of oop?

Ignou,

1721

why in java first invoke public static void main(String args[]) method????Why not public static void method1(String args[])??

1 2480


Post New OOPS Questions

Un-Answered Questions { OOPS }

Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2004


How many human genes are polymorphic?

568


What is the main purpose of inheritance law?

667


What does and I oop mean in text?

619


Why do we use polymorphism?

573






Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3823


• What are the desirable attributes for memory managment?

1724


What is stream in oop?

835


I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

1622


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1648


What does I oop mean?

612


#include #include #include #include void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.

3246


What is oops in simple words?

575


What is abstraction example?

614


What are the data types in oop?

600