InterviewSolution
Saved Bookmarks
| 1. |
What is the difference between determinable loop and non-determinable loop ? |
|
Answer» The ‘for loop’ can be labeled as ‘determinable Ans. Value of expression is 100 Goodbye! loop’ as number of its iterations can be determined before-hand as the size of the sequence, it is operating upon. The ‘while loop’ can be ‘non-determined loop’ as its number of iterations cannot be determined before-hand. Its iterations depend upon the result of a test condition, which cannot be determined before-hand. |
|