Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

OOPS Interview Questions
Questions Answers Views Company eMail

What is interface? When and where is it used?

1226

What is virtual function?where and when is it used?

Sitel,

2 3745

What is debug class?what is trace class? What differences are between them? With examples.

1167

How many types of access specifier in c# and vb.net?

Infosys,

1 3900

Hi All, I am new to programming and want to know how can i write a code to take input of 2 numbers from user and swap it without using a temp variable?

NIIT,

2 2640

How can i write a code in c# to take a number from the user and then find all the prime numbers till the number entered by the user.

NIIT, TCS,

4 4566

hi all..i want to know oops concepts clearly can any1 explain??

Eureka Forbes,

1268

c++ is a pure object oriented programming or not?

Wipro,

5 3790

why we are declare the function in the abstract class even though we are declaring it in Derived class?

TCS,

1 2326

Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

HCL,

1228

which structured data type is not used in c++? 1.union 2.structure 3.string 4.boolean

HCL, Wipro,

2 3945

Write a program to reverse a string using recursive function?

TCS,

1401

Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

TCS,

3833

c++ provides classes...and classes do what we want but why then strcut are used...if we say data hiding... it is also provided by c++ in structs then why to prefer clasess

HCL, TCS,

1 3253

Is this job good for future? can do this job post grduate student?

1203


Post New OOPS Questions






Un-Answered Questions { OOPS }

#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.

2448


How Do you Code Composition and Aggregation in C++ ?

23008


Why do we use polymorphism?

154


How do you use inheritance in unity?

151


What is difference between abstraction and encapsulation?

149






any one please tell me the purpose of operator overloading

1543


What are the components of marker interface?

153


What is the oops and benefits of oops programming?

160


class type to basic type conversion

1414


What are the 3 pillars of oop?

181


What is a class and object?

165


Why do we use oop?

178


what is the sylabus for priliminaries?

1180


Why do we use oops?

165


Why is destructor used?

166