GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Placement Papers  >  Birlasoft  >  Technical
Go To First  |  Previous Question  |  Next Question 
 Technical  |  Question 12 of 25    Print  
class Word
{
public:
Word(const char*, int = 0);
};
Referring to the sample code above what is the minimum number of arguments required to call the constructor ?
a) 0
b) 1
c) 2
d) 3



  
Total Answers and Comments: 7 Last Update: July 15, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 28, 2005 18:02:24   #1  
vaibhav kaushik        

RE: class Word { public: Word(const char*, int = 0); }; Referring to the sample code above what is...
its answer is 0.....as it will take the default argument system
 
Is this answer useful? Yes | No
August 02, 2005 01:56:35   #2  
Vibhor        

RE: class Word { public: Word(const char*, int = 0); }; Referring to the sample code above what is...
minimum argument is 1
 
Is this answer useful? Yes | No
August 09, 2005 02:12:58   #3  
Priyanka Bhardwaj        

RE: class Word { public: Word(const char*, int = 0); }; Referring to the sample code above what is...
Answer (b)
 
Is this answer useful? Yes | No
August 23, 2005 10:53:51   #4  
sandeep paliwal        

RE: class Word { public: Word(const char*, int = 0); }; Referring to the sample code above what is...
answer is 0 because object can be created using default constructor...... and minimum 1 argument is required for calling overloaded constructor
 
Is this answer useful? Yes | No
October 31, 2005 12:11:24   #5  
ronak.tali Member Since: September 2005   Contribution: 5    

RE: class Word { public: Word(const ch...
1
 
Is this answer useful? Yes | No
April 26, 2006 06:17:25   #6  
gautam3118 Member Since: April 2006   Contribution: 1    

RE: class Word { public: Word(const ch...
ans should be 0
 
Is this answer useful? Yes | No
July 15, 2006 05:54:30   #7  
manishsddiet Member Since: July 2006   Contribution: 2    

RE: class Word { public: Word(const ch...
answer should be be it will take 1 minimum 1 argument since we have placed a const char pointer in argument in the constructor since there is no othet constructor it will definitely require 1 argument to be passed to the char ptr
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape