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

What is a template?

7 9643

What are the main differences between procedure oriented languages and object oriented languages?

IBM, Infosys, Wipro,

9 21829

What is R T T I ?

Ness Technologies,

6 16244

What are generic functions and generic classes?

5 22823

What is namespace?

15 31591

What is the difference between pass by reference and pass by value?

Pfizer, TCS,

12 41090

Why do we use virtual functions?

4 15514

What do you mean by pure virtual functions?

8 15899

What are virtual classes?

2131

Does c++ support multilevel and multiple inheritance?

IBS, Wipro,

9 17530

What are the advantages of inheritance?

IBS, TCS,

26 97708

When is a memory allocated to a class?

11 29896

What is the difference between declaration and definition?

IBS,

20 50556

What is virtual constructors/destructors?

IBS,

4 10657

In c++ there is only virtual destructors, no constructors. Why?

IBM, Polaris,

4 29189


Post New OOPS Questions

Un-Answered Questions { OOPS }

What are objects in oop?

1041


Can bst contain duplicates?

1145


What are the features of oop?

1097


What is destructor in oop?

989


Objective The objective of this problem is to test the understanding of Object-Oriented Programming (OOP) concepts, in particular, on encapsulation. Problem Description Create a program for managing customer’s bank accounts. A bank customer can do the following operations: 1. Create a new bank account with an initial balance. 2. Deposit money into his/her account. 3. Withdraw money from his/her account. For this operation, you need to output “Transaction successful” if the intended amount of money can be withdrawn, otherwise output “Transaction unsuccessful” and no money will be withdrawn from his/her account. Input The input contains several operations and is terminated by “0”. The operations will be “Create name amount”, “Deposit name amount”, or “Withdraw name amount”, where name is the customer’s name and amount is an integer indicating the amount of money. There will be at most 100 bank accounts and they are all created on the first month when the bank is opening. You may assume that all account holders have unique names and the names consist of only a single word. Output The output contains the transaction result of withdrawal operations and the final balance of all customers after some withdrawal and deposit operations (same order as the input). Sample Input Create Billy 2500 Create Charlie 1000 Create John 100 Withdraw Charlie 500 Deposit John 899 Withdraw Charlie 1000 0

2181


What does I oop mean?

1023


Why multiple inheritance is not possible?

1020


Can we have inheritance without polymorphism?

975


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

3702


What are the types of abstraction?

999


What is the purpose of enum?

967


Why do we use oop?

1047


What is class and object in oops?

1069


What is difference between multiple inheritance and multilevel inheritance?

1108


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

4084