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 17601


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

Google, Subex,

3 21536

implement stack using stack.h headerfile functions

Exilant, GMG, Subex, University,

1 8993

what is static function

Patni,

2 6200

why the size of an empty class is 1

4 10995

is throwing exception from a constructor not a good practice ?

Ericsson,

5 9572

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

1 4840

difference between c and c++?

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

38 117508

Brief explaination about #include, cin and cout

3 8990

write the prime no program in c++?

16 36474

write program for palindrome

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

81 195292

Write the program for fibonacci in c++?

TATA, Wipro,

20 39157

Write the program form Armstrong no in c++?

HCL,

11 27362

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,

2012


Post New C++ General Questions

Un-Answered Questions { C++ General }

What are protected members in c++?

609


When should we use multiple inheritance?

606


Are there interfaces in c++?

551


What is #include sstream?

611


What are the two types of comments?

566






Write a program to concatenate two strings.

577


What is a map in c++?

576


Explain the register storage classes in c++.

661


Can you declare an array without a size in c++?

563


What is the full form of c++?

607


What gives the current position of the put pointer?

550


Why null pointer is used?

575


Explain what is class definition in c++ ?

590


What is an undefined reference/unresolved external symbol error and how do I fix it?

591


Differentiate between declaration and definition.

577