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 algorithm in SCD Type2(SAS DI Studio Transformaton)?

2 Answers  


Why we need new operator in java at the time of object declaration and why not in c++?

1 Answers   Zensar,


Given three sides of a triangle. Write the Program to determine whether the triangle is : 1) Invalid 2) Right Angled 3) Isoscales 4) Equilateral 5) Not Special An Isoscales right angled triangle should be taken as a Right Angled Triangle

3 Answers   FFC, Goldman Sachs, Student,


What is the difference between in-proc and out-of-proc?

2 Answers   Oracle,


In OB52 , How to define two open posting period, Like only 5 and 8 posting should be open.. should not open 6 and 7..period..

0 Answers  






what are the advantages of sap on other software ?

0 Answers  


HTML is a subset of

8 Answers  


Difference of Console, web & windows applications?

0 Answers  


Data structure used to impliment a menu:

0 Answers   Verifone,


how can we implement locks in plsql?

0 Answers  


i want to insert textbox value to sql db. i have only one text box but store four values. ple give any one give sample code in asp.net c#..

1 Answers   Concentrix,


How to set on/off a group of indicators in a single statement?

0 Answers  


Categories