what is the difference between a looping statement and a
decision statement

Answers were Sorted based on User's Feedback



what is the difference between a looping statement and a decision statement..

Answer / guest

looping statement will be executed repeatedaly until the
condition becomes false.
Decision statment have only one entry point but must have
two exit points since the answer to the question can be
either a "YES" or a "NO".

Is This Answer Correct ?    90 Yes 8 No

what is the difference between a looping statement and a decision statement..

Answer / ankit guha

the main difference between looping statement and decision making statement is that in loop the statement execute several times until the condition would not get false whereas in decision the statement execute either one or not execute on the basis of the condition provided.

Is This Answer Correct ?    25 Yes 6 No

what is the difference between a looping statement and a decision statement..

Answer / vignesh1988i

looping statement :
this can rotate to a specific number of times upto
the termination condition given ......
here we can conclude many decisions by further adding
statements using some decisions control statement....
for eg :

for(int i=0;i<5;i++)
{
if(i%2==0)
{
printf("winner ");
if(i)
printf("looser ");
}
else
{
printf("intelligent ");
if(i)
printf("big idiot");
}
}
here using both looping and conditions structures we there
by get different by varying the values of 'i'.

decision statement:

in these statements we must take only one decision at a
time....... multiple desions not possible... the decisions
can be nested ..... but no 2 or more decisions possible at a
time.....

eg: if-else,switch

thank you

Is This Answer Correct ?    24 Yes 19 No

Post New Answer

More Programming Languages AllOther Interview Questions

what is oops?

4 Answers   Satyam,


You are given a dictionary of all valid words. You have the following 3 operations permitted on a word: delete a character, insert a character, replace a character. Now given two words - word1 and word2 - find the minimum number of steps required to convert word1 to word2. (one operation counts as 1 step.)

0 Answers   Amazon,


I want Ada programming language books. Could anyone post me any link for that?

0 Answers  


in IT trend mantis meant what? how to know mantis in IT trends? detail description about mantis?

0 Answers   Sacred Heart College,


Explain polymorphism. Provide an example.

0 Answers   Amazon,






how to convert infix expression to prefix expression?

0 Answers   nvidia,


What are the limitation in using querystring in .net?

1 Answers   Tesco,


what is the basic and unique feature of dotnet

0 Answers   HCL,


What do you meant by Runtime Polymorphism?

2 Answers   Persistent,


WHAT IS THE MEANING OF CONSTANT ...EXEEDS LENGTH LIMIT WHILE COPYING FROM PS FILE TO KSDS

0 Answers  


what is jackson structured develepment?? and how is it different from OMT??

1 Answers  


What are two of your strengths that you will bring to our QA/testing team?

0 Answers  


Categories