0% (0 out of 16 correct) |
|
![]() | 1. |
An In-Line PERFORM UNTIL tests a condition.
![]() Level: easy |
![]() | 2. |
The PERFORM TIMES uses an explicit counter that is initialized and incremented within the PERFORM statement.
![]() Level: easy |
![]() | 3. |
When nested PERFORM VARYING statements can be combined into a single statement, this is called PERFORM VARYING AFTER.
![]() Level: medium |
![]() | 4. |
PERFORM UNTIL is preferred to PERFORM TIMES when you know in advance how many times to loop.
![]() Level: medium |
![]() | 5. |
One method used to terminate an infinite loop in a program running on a PC is to press the escape key.
![]() Level: hard |
![]() | 6. |
An example of a PERFORM structure that does not involve iteration is PERFORM paragraph-name.
![]() Level: medium |
![]() | 7. |
The simple In-Line PERFORM and the In-Line PERFORM UNTIL both test a condition.
![]() Level: hard |
![]() | 8. |
GO TO has a scope terminator.
![]() Level: easy |
![]() | 9. |
GO TO never tests a condition.
![]() Level: easy |
![]() | 10. |
The condition in a PERFORM UNTIL is checked after looping.
![]() Level: medium |
![]() | 11. |
Given PERFORM 300-LABEL-RTN, the computer know when the last statement in 300-LABEL-RTN is executed when it reaches a new paragraph-name or the end of the program.
![]() Level: hard |
![]() | 12. |
PERFORM VARYING statements can be nested.
![]() Level: easy |
![]() | 13. |
EXIT statements are used to make programs more modular, more structured and less prone to errors.
![]() Level: medium |
![]() | 14. |
PERFORM VARYING AFTER depends on the physical placement of the paragraphs to determine which paragraphs are executed.
![]() Level: medium |
![]() | 15. | When is the In-Line PERFORM not a good choice of PERFORM? _______________________________________________________________________ YOUR ANSWER: ![]() See page 343 Level: hard |
![]() | 16. | What type of PERFORM does not name a paragraph? ________________________________________________________________________ YOUR ANSWER: ![]() See pages 343, 348 Level: medium |
![]() | 17. | What is the value of NUM after the following is executed? _____________________ PERFORM 400-RTN VARYING COUNT FROM 1 BY 1 UNTIL NUM > 8. YOUR ANSWER: ![]() See page 357 Level: easy |
![]() | 18. | How many times will 400-RTN be executed in the following example? ___________ PERFORM 400-RTN VARYING I FROM 1 BY 1 UNTIL I > 5 AFTER J FROM 1 BY 1 UNTIL J > 2. YOUR ANSWER: ![]() See page 360 Level: hard |
![]() | 19. | What type of PERFORM has a scope terminator? ____________________________ YOUR ANSWER: ![]() See page 348 Level: medium |
![]() | 20. | What type of PERFORM requires the establishment of a counter? _______________ YOUR ANSWER: ![]() See page 357 Level: medium |
![]() | 21. | How many times will 400-RTN be executed in the following example? ___________ PERFORM 400-RTN VARYING I FROM 2 BY 3 UNTIL NUM > 9? YOUR ANSWER: ![]() See page 357 Level: medium |
![]() | 22. | The simple PERFORM … END-PERFORM is an example which control structure? ________________________________________________________________________ YOUR ANSWER: ![]() See page 342 Level: easy |
![]() | 23. | The PERFORM UNTIL is an example of the control structure called_____________ YOUR ANSWER: ![]() See page 348 Level: medium |
![]() | 24. |
Which one of the following is recommended code?
![]() Level: medium |
![]() | 25. |
Given: PERFORM 400-LABEL-RTN, which of the following is NOT true?
![]() Level: easy |