C++ General Interview Questions
Questions Answers Views Company eMail

What is the difference between public, private, protected inheritance?

Wipro,

12 52095

What is Virtual Inheritance?

Wipro, Amazon,

7 10274

What is the difference between operator new and the new operator?

TCS, Wipro, Amazon,

3 8724




What happens if an exception is throws from an, object's constructor and object's destructor?

Wipro,

4 13068

What is the difference between Pointer and a Reference? When you would use them?

Wipro,

4 8867

What are the differences between a struct in C and in C++?

Wipro, Amazon,

8 12289

What are the differences between a struct and a class in C++?

Wipro, Amazon,

6 8368

What are the differences between public, private, and protected access?

IBM, Wipro, Oracle,

12 64889




What is the difference between a copy constructor and an overloaded assignment operator?

Wipro, Citrix, Microsoft, Belzabar,

4 19538

How do you link a C++ program to C functions?

4 13308

Can inline functions have a recursion? Give the reason?

3 6850

How Virtual functions call up is maintained?

2 7771

What is problem with Runtime type identification?

2 6992

What about Virtual Destructor?

Virtusa,

1 4742

What are advantages of C++ when comparing with C?

iGate, HP, TCS,

18 20859


Post New C++ General Questions






Un-Answered Questions { C++ General }

Explain what data encapsulation is in c++?

46


What is data abstraction? How is it different from data encapsulation?

38


How do you decide which integer type to use?

58


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


Why is c++ a mid-level programming language?

43






Explain 'this' pointer and what would happen if a pointer is deleted twice?

69


What is the array and initializing arrays in c++?

9


What does #define mean in c++?

30


What is a virtual destructor? Explain the use of it?

51


Is python better than c++?

31


What are the various arithmetic operators in c++?

48


Explain the static storage classes in c++.

53


Explain what is oop?

46


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

60


Write about the scope resolution operator?

60