GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Wipro  >  Technical
Go To First  |  Previous Question  |  Next Question 
 Technical  |  Question 3 of 157    Print  
Compiler recognizes the function as pure virtual function if

A. The function if equated to 0.
B. The function has no body
C. If it is declared with the keyword virtual
D. None


  
Total Answers and Comments: 5 Last Update: May 29, 2008   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 17, 2005 15:42:27   #1  
chakrab Member Since: October 2005   Contribution: 3    

RE: Compiler recognizes the function as pure virtual ...

A


 
Is this answer useful? Yes | No
January 31, 2006 12:26:26   #2  
kiruthiga Member Since: January 2006   Contribution: 3    

RE:
c
 
Is this answer useful? Yes | No
July 17, 2007 02:39:28   #3  
kummyvv Member Since: July 2007   Contribution: 3    

RE: Compiler recognizes the function as pure virtual ...
I think its A B & C

Class c{

virtual afunc() 0;

}

This afunc should n't have any implementation in class c ie. parent class its declared with keyword virtual then its called a virtual function and if equated to 0 its pure virtual function.

 
Is this answer useful? Yes | No
November 07, 2007 07:02:43   #4  
sharma.mahesh3 Member Since: October 2007   Contribution: 14    

RE: Compiler recognizes the function as pure virtual ...
c
 
Is this answer useful? Yes | No
May 29, 2008 01:45:45   #5  
arunMkumar Member Since: May 2008   Contribution: 5    

Compiler recognizes the function as pure virtual function ifnA. The function if equated to 0.nB. The function has no bodynC. If it is declared with the keyword virtualnD. None
Hi..

For this question ans A B&C is absolutely correct . So if they given as all d above; v can select it but here the other option is NONE then v ll give the higher preference to NONE..

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape