Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



C++ Interview Questions
Questions Answers Views Company eMail

What is the difference between and interface and an abstract class ?

IBM, Infosys, Ness Technologies,

4 36320

What is polymorphism ? Explain with examples

Ness Technologies,

8 27371

features of OOPS

Ness Technologies, Satyam,

22 59996

what is multi level inheritance give n example ?

HDFC, Hulas Steel, Ness Technologies,

13 66699

Can we have a private constructor ?

HSBC, Ness Technologies, TCS, Wipro,

12 51553

Can we have a private virtual method ?

Ness Technologies,

8 16968

How would you stop a class from class from being derived or inherited.

Ness Technologies,

18 25560

What is multiple inheritance ?

Blue Star, C DAC, CDAC, Impetus, Ness Technologies, Softvision Solution,

17 27988

We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ball with only 3 possible weighing attempts?

IBM, Sage, Vertex,

8 28457

What is a linked list?

IBM, Neural Info,

10 13289

Name an advantage of linked list over array?

IBM, Infosys,

11 26231

Name an advantage of array over linked list?

GML, IBM, Software Solutions,

24 61394

Have you ever used threads?

Adobe, IBM,

3 9999

Should you protect the global data in threads? Why or why not?

IBM,

2 10809

Have you ever interfaced with a database?

IBM,

2 6048


Un-Answered Questions { C++ }

Is html an oop?

1055


How do I run c++?

1062


Write a note about the virtual member function?

1046


Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation

2125


Why do we need constructors in c++?

1108


Explain the concept of dynamic allocation of memory?

1084


In C++ what is the meaning of data hiding?

1017


What's the order in which the local objects are destructed?

1260


officer say me - i am offered to a smoking , then what can you say

2097


Explain the differences between list x; & list x();.

1005


What is heap sort in c++?

1067


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1559


what is graphics

2446


Why is it called c++?

1032


What is the latest c++ standard?

1143