Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

OOPS Interview Questions
Questions Answers Views Company eMail

write a c++ code to overload + and - for a stack class such that + provides push and - provides pop operation

College School Exams Tests, HCL, IBM, TCS,

1 6213

write knight tour problem which is present in datastructure

2724

write string class as your own class in java without using any built-in function

2556

how does a main() in C++ is different from main() in C?

7 28030

How do you make derived class as an abstract class?

Convergys, TCS,

1 5386

Write a program to find out the number of palindromes in a sentence.

TCS,

1 4670

what is static?

4 6227

The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 14 such programmers take 14 minutes to write 14 lines of code in total. How long will in take 5 programmers to write 5 lines of code in total ?

TCS,

6 11465

Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1 4891

write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

Wipro,

2300

what is overloading

MindCracker,

3 5437

what is the diffrence between c# and c++

5 8612

How compiler selects(internally) required overridden function in inheritance?

CSC, Infinite Computer Solutions,

2 6553

They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1978

There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

2 4502


Post New OOPS Questions

Un-Answered Questions { OOPS }

What are the 3 principles of oop?

1178


Why do we use polymorphism?

1131


What is class in oop with example?

1162


What is difference between inheritance and polymorphism?

1078


What is difference between abstraction and encapsulation?

1137


How do you explain polymorphism?

1119


What is methods in oop?

1039


Why do we use polymorphism in oops?

1109


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

3830


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

2210


What is overriding in oops?

1160


What is the difference between inheritance and polymorphism?

1166


• What are the desirable attributes for memory managment?

2286


What is encapsulation in oops?

1074


Which method cannot be overridden?

1176