C++ Interview Questions
Questions Answers Views Company eMail

What is the purpose of ios::basefield in the following statement?

790

Is it possible for a member function to delete the pointer, named this?

616

Write about the use of the virtual destructor?

612

How a new operator differs from the operator new?

626

Can we define a constructor as virtual in c++?

605

Write about a nested class and mention its use?

630

What would happen on forgetting [], while deallocating an array through new?

638

How can an improvement in the quality of software be done by try/catch/throw?

594

What is the sequence of destruction of local objects?

560

What is the main purpose of overloading operators?

592

What is a c++ class?

625

How do c++ struct differs from the c++ class?

594

Discuss the possibilities related to the termination of a program before entering the mainq method?

545

How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

605

Why are arrays usually processed with for loop?

775


Un-Answered Questions { C++ }

How does class accomplish data hiding in c++?

662


What does h mean in maths?

574


Will the following program execute?

563


Is recursion allowed in inline functions?

612


What is the use of 'using' declaration in c++?

634






What is polymorphism and types?

604


What is meant by entry controlled loop?

662


What do you mean by stack unwinding in c++?

732


What is virtual methods?

661


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

547


What are the basic data types used in c++?

557


List the features of oops in c++?

578


What is oops in c++?

593


In what situations do you have to use initialization list rather than assignment in constructors?

637


What is the need of a destructor?

640