Page 94 - iPro_trackGPT_V5_Class8
P. 94
3. The ........................ loop is particularly useful when the number of iterations is known
beforehand.
4. An ........................ is an abnormal condition that can stop the execution of a program.
5. The ........................ statement skips the rest of the current loop cycle and goes directly to the
next iteration.
Answer Arcade Section B (Subjective)
A. Short answer type questions.
1. Why are control flow statements required in a programming language?
...................................................................................................................................................................................
...................................................................................................................................................................................
2. Name any three types of error in Java.
...................................................................................................................................................................................
3. List the three types of control flow statements provided by Java.
...................................................................................................................................................................................
4. Write the syntax of the for loop.
...................................................................................................................................................................................
...................................................................................................................................................................................
B. Long answer type questions.
1. What do you understand by the syntax error? Explain with an example.
...................................................................................................................................................................................
...................................................................................................................................................................................
...................................................................................................................................................................................
2. Which error is most difficult to find and why?
...................................................................................................................................................................................
...................................................................................................................................................................................
...................................................................................................................................................................................
3. In which scenario the switch statement is used?
...................................................................................................................................................................................
...................................................................................................................................................................................
4. Explain different types of jump statements available in Java.
...................................................................................................................................................................................
...................................................................................................................................................................................
...................................................................................................................................................................................
92 TrackGPT iPRO (V5.0)-VIII

