C++ Interview Questions
Questions Answers Views Company eMail

When is a template better solution than a base class??

emc2,

2 7680

Explain calling an object's member function(declared virtual)from its constructor?

1 2737

What is the concept of object oriented program?

6 5871

You're given an array containing both positive and negative integers and required to find the sub-array with the largest sum (O(N) a la KBL). Write a routine in C for the above.

4 11157

Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].

1 5047

Give a very good method to count the number of ones in a "n" (e.g. 32) bit number.

3 7489

wht is ditch

1748

When you define a integer it gets stored in which data structure?(Stack or a heap)

emc2,

2 4798

What is a scope operator and tell me its functionality?

emc2,

3 4873

What is difference between function overloading and overriding?

emc2,

1 5129

What is difference between new and malloc?

emc2,

7 9174

What is difference between #define and const?

emc2,

3 6404

Write pseudo code for push in a stack?

emc2,

2 9755

What is Hashing and how is it done? Pictorial form?

emc2, Wipro,

2 7685

Polymorphism with an example?

Accenture, emc2,

8 12188


Un-Answered Questions { C++ }

Does c++ have finally?

564


Explain function overloading

583


What is #include iostream in c++?

587


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

5895


Does c++ have string data type?

689






What problems might the following macro bring to the application?

616


what is data abstraction in C++?

644


Define pointers?

605


What are the fundamental features of an object-oriented language?

536


What is protected inheritance?

592


sir please send me bpcl previous question papers

1952


what are the events occur in intr activated on interrupt vector table

1176


What are default parameters? How are they evaluated in c++ function?

663


How do you establish an is-a relationship?

616


What is abstraction in oops with example?

770