Follow Our FB Page << CircleMedia.in >> 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.

Satyam,

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

Patni,

2 5235

why the size of an empty class is 1

4 9756

is throwing exception from a constructor not a good practice ?

Ericsson,

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++?

HCL,

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,

1609


Post New C++ General Questions






Un-Answered Questions { C++ General }

Explain abstraction.

195


What is the use of lambda in c++?

152


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

185


What is encapsulation in c++?

215


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

1207






Can member data be public?

189


What does flush do c++?

158


Explain the uses oof nested class?

185


What is c++ flowchart?

173


Explain about templates of C++.

220


Why c++ is better than c language?

161


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

135


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.

2627


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

181


Where are setjmp and longjmp used in c++?

178