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



C++ Interview Questions
Questions Answers Views Company eMail

How would you implement a substr() function that extracts a sub string from a given string?

1048

How much maximum can you allocate in a single call to malloc()?

1107

How do you declare A pointer to a function which receives nothing and returns nothing

1237

What is the difference between an enumeration and a set of pre-processor # defines?

1391

What are the advantages of using typedef in a program?

1142

Can a Structure contain a Pointer to itself?

1142

Can you use the function fprintf() to display the output on the screen?

1247

Where Malloc(), Calloc(), and realloc() does get memory?

1056

In c++, what is the difference between method overloading and method overriding?

1147

Differentiate between a template class and class template in c++?

1101

What is an adaptor class or wrapper class in c++?

1237

What is a node class in c++?

1073

What is an accessor in c++?

1078

What is an orthogonal base class in c++?

1162

What is polymorphism in c++? Explain with an example?

1036


Un-Answered Questions { C++ }

Why should a c++ programmer be interested in stl?

1097


When must you use a pointer rather than a reference?

1042


How the endl and setw manipulator works?

1017


Describe Trees using C++ with an example.

1157


What is the extraction operator and what does it do?

1085


Write a program to read the data and evaluate the results of the election. Print all output to the screen. Your output should specify: The total number of votes, the number of valid votes and the number of spoilt votes. The winner(s) of the election. Hint: An appropriate search should be used to determine the winner(s). The votes obtained by each candidate sorted in terms of the number of votes obtained. Hint: An appropriate sort should be used to sort the candidate(s). The Source code should be saved as VotingSystem. Project Input: Candidates’ Names and Numbers 2501 Victor Taylor 2502 Denise Duncan 2503 Kamal Ramdhan 2504 Michael Ali 2505 Anisa Sawh 2506 Carol Khan 2507 Gary Owen Votes 3 1 2 5 4 3 5 3 5 3 2 8 1 6 7 7 3 5 6 9 3 4 7 1 2 4 5 5 1 4 0 Project Output: Invalid vote: 8 Invalid vote: 9 Number of voters: 30 Number of valid votes: 28 Number of spoilt votes: 2 The winner(s): 2503 Kamal Ramdhan 2505 Anisa Sawh Candidate Score 2503 Kamal Ramdhan 6 2505 Anisa Sawh 6 2501 Victor Taylor 4 2504 Michael Ali 4 2502 Denise Duncan 3 2507 Gary Owen 3 2506 Carol Khan 2

3155


C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.

844


Discuss the possibilities related to the termination of a program before entering the mainq method?

954


Why do we use encapsulation in oops?

1042


What is abstraction in oop with example?

1133


Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02

1957


What are the rules for naming an identifier?

1064


What are references in c++? What is a local reference?

1046


Can class objects be passed as function arguments?

1066


What are disadvantages of pointers?

1040