GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Integra  >  Aptitude
Go To First  |  Previous Question  |  Next Question 
 Aptitude  |  Question 18 of 21    Print  
int i=0;
int j=0;
loop:
if(i = 0)
i++;
i++;
j++;
if(j<= 25)
goto loop
xxx:
How many times is the loop entered?


  
Total Answers and Comments: 5 Last Update: October 11, 2006   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: nikhil
 
answer:-  26 since j starts from 0 and it will count upto 25 .... so number of count value is 26.

Above answer was rated as good by the following members:
gowsar
June 16, 2006 22:07:04   #1  
shirsangshu dutta        

RE: int i=0;int j=0;loop:if(i = 0)

25

note i 0


 
Is this answer useful? Yes | No
June 18, 2006 14:20:20   #2  
Shilpi        

RE: int i=0;int j=0;loop:if(i = 0)
26 times
 
Is this answer useful? Yes | No
June 18, 2006 14:21:28   #3  
Shilpi        

RE: int i=0;int j=0;loop:if(i = 0)
26 times it will enter the loop for j 0 to j 25 since it depends only on the value of j and not i.
 
Is this answer useful? Yes | No
June 18, 2006 14:23:33   #4  
Shilpi        

RE: int i=0;int j=0;loop:if(i = 0)
26 times as it depends only on the value of j and not on i
 
Is this answer useful? Yes | No
October 11, 2006 07:41:00   #5  
nikhil        

int i=0;int j=0;loop:if(i = 0)
answer:- 26 since j starts from 0 and it will count upto 25 .... so number of count value is 26.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
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