Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

C++ General Interview Questions
Questions Answers Views Company eMail

How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.


15 14136

write a program in c++ to implement stack using functions in header file stack.h

Google, Subex,

3 20345

implement stack using stack.h headerfile functions

Exilant, GMG, Subex, University,

1 8195

what is static function


2 5235

why the size of an empty class is 1

4 9756

is throwing exception from a constructor not a good practice ?


5 8013

why can't we declare data member of class auto register or extern

1 4231

difference between c and c++?

Cognizant, IBM, Infosys, Oracle, Sarva Shiksha Abhiyan, Wipro,

38 109205

Brief explaination about #include, cin and cout

3 7947

write the prime no program in c++?

16 32373

write program for palindrome

Amazon, Aricent, CSC, GE, HCL, Infosys, Syntel, Temenos, Wipro,

81 178675

Write the program for fibonacci in c++?

TATA, Wipro,

20 34508

Write the program form Armstrong no in c++?


11 24606

how many rounds and wt type of questios ask in the written test for first round 2. tech. round 3. and futher rounds

Thought Works,


Post New C++ General Questions

Un-Answered Questions { C++ General }

Explain abstraction.


What is the use of lambda in c++?


If there are two catch statements, one for base and one for derived, which should come first?


What is encapsulation in c++?


Program to check whether a word is a sub-string or not of a string typed


Can member data be public?


What does flush do c++?


Explain the uses oof nested class?


What is c++ flowchart?


Explain about templates of C++.


Why c++ is better than c language?


Can you pass an array to a function in c++?


A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.


How would you differentiate between a pre and post increment operators while overloading?


Where are setjmp and longjmp used in c++?