ALLInterview.com :: Home Page            
 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  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
   
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
which of the following go out of the loopo if expn 2
becoming false
   a.while(expn 1){...if(expn 2)continue;}
   b.while(!expn 1){if(expn 2)continue;...}
   c.do{..if(expn 1)continue;..}while(expn 2);
   d.while(!expn 2){if(expn 1)continue;..}
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..}
Answer
# 1
d 
Is This Answer Correct ?    0 Yes 3 No
Mannucse
[Kiona]
 
  Re: which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..}
Answer
# 2
c) Since expn2 becoming false will terminate do-while loop. 
Is This Answer Correct ?    8 Yes 0 No
Jai
 
 
 
  Re: which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..}
Answer
# 3
ans is d,bcoz d is only the loop statement in the option 
Is This Answer Correct ?    0 Yes 3 No
Bipin Chandra Sai.s
 
  Re: which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..}
Answer
# 4
answer: c

here in do-while:
fist the statements inside the block gets executed.then
when it checks the condition ,it will be come out of loop
because conditions goes wrong
 
Is This Answer Correct ?    2 Yes 0 No
Prashanth
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above Accenture15
what are threads ? why they are called light weight processes ? what is the relation between process and threads ?  1
will the program compile? int i; scanf(“%d”,i); printf(“%d”,i);  3
we all know about the function overloading concept used in C++ and we all learnt abt that.... but that concept is already came in C in a very smaller propotion ... my question is IN WHICH CONCEPT THERE IS A USE OF FUNCTION OVERLOADING IS USED in C language????????????? Google4
In the below code, how do you modify the value 'a' and print in the function. You'll be allowed to add code only inside the called function. main() { int a=5; function(); // no parameters should be passed } function() { /* add code here to modify the value of and print here */ }  1
why arithmetic operation can’t be performed on a void pointer?  1
wat are the two methods for swapping two numbers without using temp variable??  2
write a programe returns the number of times the character appears in the string  2
write a program to interchange the value between two variable without using loop  1
how to return 1000 variables from functio9n in c?plz give me code also  6
macros and function are related in what aspect? a)recursion b)varying no of arguments c)hypochecking d)type declaration HCL11
what is the difference between definition and declaration? give me some examples. TCS2
 
For more C Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

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