C++ General Interview Questions
Questions Answers Views Company eMail

Difference between Top down and bottom up approaches for a given project ?

Siemens, Infosys, HCL, CSC, HP, IIT, BSNL,

14 96547

What and all can a compiler provides by default?

Accenture, HP,

3 11086

What are the different operators in C++?

HP,

3 11154




What is the difference between method and message?

HP,

5 41514

What is difference between initialization and assignment?

Infosys, HCL, HP,

12 47815

when can we use copy constructor?

HP,

6 12552

Describe functional overloading?

HP,

6 7950

Difference between Overloading and Overriding?

IBM, NIIT, GameLoft, HP, Appnetix Techno, Rohde and Schwarz,

35 180089




Difference between Operator overloading and Functional overloading?

HP,

10 45079

What is virtual constructor paradigm?

HCL, HP,

5 10243

when can we use virtual destructor?

HP, HCL, Virage Logic,

7 20784

What is the difference between Class and Structure?

IBM, TCS, HP, Samsung,

40 201743

What is size of null class?

HP,

5 12316

Is structure can be inherited?

HP, ST Micro,

5 13106

How the V-Table mechanism works?

HP,

6 18790


Post New C++ General Questions






Un-Answered Questions { C++ General }

What do you mean by storage classes?

6


Can the creation of operator** is allowed to perform the to-the-power-of operations?

5


Why the usage of pointers in C++ is not recommended ?

98


Describe protected access specifiers?

9


What is private inheritance?

1






Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

3081


What is a local reference?

1


When are exception objects created?

1


What are the stages in the development cycle?

1


Evaulate: 22%5 a) 2 b) 4 c) 0

19


can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<

1013


Can a new be used in place of old mallocq? If yes, why?

3


What are vtable and vptr?

8


Write bites in Turbo c++ Header ("Include") Files.

22


Define vptr.

1