ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
 Categories  >>  Software  >>  Programming Languages  >>  C++  >>  OOPS       
Suggest New Category 
 


 

View Page with Answers
  Question  Asked @ Answers Views     select
 
When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory?? Honeywell   12  2925
Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?. IBM  8  2181
Tell us about yourself. IBM   14  5892
Have you ever interfaced with a database? IBM   0  65
Should you protect the global data in threads? Why or why not? IBM  1  1517
Have you ever used threads? IBM   2  1197
Name an advantage of array over linked list? IBM  12  6270
Name an advantage of linked list over array? IBM  6  2284
What is a linked list? IBM   4  1778
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   2  1960
What is multiple inheritance ? Ness-Technologies   8  1835
How would you stop a class from class from being derived or inherited. Ness-Technologies  7  2347
Can we have a private virtual method ? Ness-Technologies  5  2369
Can we have a private constructor ? Ness-Technologies  8  3906
what is multi level inheritance give n example ? Ness-Technologies   2  3879
E-Mail New Answers        Answer Selected Questions
 
 
Prev    1   2   3   4   5   6    [7]   8   9   10   11   12   13    Next
 
 
 STL interview questions   STL Interview Questions  OOPS interview questions   OOPS Interview Questions  C++ General interview questions   C++ General Interview Questions
 
 
 
Un-Answered Questions
 
 Question Views Asked at   Select
 
i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage?????? 46  
Have you ever interfaced with a database? 65 IBM
sir plz send me a set of questions that been frequently held in written examination during campus selection. 24  
Contrast OOP and SOA. What are tenets of each? 127 Wipro
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required) 91  
How Do you Code Composition and Aggregation in C++ ? 898 IBM
How to execute business logic for only once ..?even though user clicks submit button multiple times by mistake..? (i disabled JavaScript) 53  
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 39  
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception). 29  
i had specified the access specifier for abstarct class member like (pure virtual function) as private.But it can be accessed by the derived class.How the private member of one class is accessed by other class.if any body face this problem and found the solution plz reply to me. 32  
explain dynamic binding by drowing 36  
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’. 28 TCS
Write a program to demonstrate the use of 'Composition' in C++ 49  
How to deploy web appliction in web logic ? 36 Unisys
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction 39  
E-Mail New Answers        Answer Selected Questions
 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com