Why is a loop altering statement necessary in a while loop?
What will be an ideal response?
A loop altering statement is necessary in a while loop so that the condition changes and a stopping condition is found. Without the loop altering statement, the program will be caught in an infinite loop
You might also like to view...
ALU stands for ________
Fill in the blank(s) with correct word
Write a DTD for an XML document that stores company profiles. Each company is represented by a company element. Profiles must contain a name element and a tour element. Element tour points to a .jpg image or to an HTML page that relates to the company. Element tour should specify the type of image or document to which it points. [Note: The type of image should be specified by a NOTATION type attribute.]. Also write an XML document and validate it against this DTD.
What will be an ideal response?