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 the meaning of without standing arrears?

0 Answers   TCS,


Write a program to create a process in UNIX

0 Answers  


How to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net

0 Answers   Tesco, Wipro,


what are partial classes. Where is the entry point of partial classes.

1 Answers   Satyam,


4. What is the need of START 0? Instead if can we use any other numeric? If we use what will happen?

0 Answers   TCS,






how to stop execution of step 3 in a job mainframe

0 Answers  


I've an application where i need to give access to all the features only to admin and only few features to normal users. Say Menu...i dont want all my menu items to be accessible to all the users only the admin people can see few all the features where as normal users can have access to limited menu items...how can i achieve this. Please note that my menu is not a database driven menu.

1 Answers   Tesco,


what is the BAM? where we can use it in BizTalk server?

0 Answers  


define profiler???

0 Answers  


what do you meant by Platform-Independent in Java?

6 Answers   Persistent,


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

0 Answers  


hi, all this is shoba m.c.a . i have learned abap but no oppurtunities right now as fresher , right now i want to learn any course on demand any one pls suggest me good course and institute in hyderabad

0 Answers  


Categories