C++ General Interview Questions
Questions Answers Views Company eMail

How does c++ sort work?

8

How do you declare a set in c++?

5

Is set c++?

7




What is the difference between set and map in c++?

10

What is an associative container in c++?

7

What is heap sort in c++?

5

What is binary search in c++?

7

How do you add an element to a set in c++?

6




What is a set in c++?

7

Can you sort a set c++?

8

What is a class template in c++?

8

What is a multiset c++?

7

How many namespaces are there in c++?

6

What is decltype c++?

10

How do you remove an element from a set in c++?

8


Post New C++ General Questions






Un-Answered Questions { C++ General }

What is a stack? How it can be implemented?

47


What is auto type c++?

24


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

51


what do you mean by volatile variable?

37


In what situations do you have to use initialization list rather than assignment in constructors?

49






what is C++ objects?

70


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

57


Does c++ support exception handling?

43


Explain the register storage classes in c++.

54


What is pointer to member?

48


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

2056


How static variables and local variablesare similar and dissimilar?

40


Does c++ vector allocate memory?

25


What is implicit pointer in c++?

9


What are the basics of local (auto) objects?

49