0% (0 out of 16 correct)
The questions marked with symbol have not been graded.
Responses to questions are indicated by the symbol.


WRONG1. An In-Line PERFORM UNTIL tests a condition.
C A. True
O B. False

See page 348
Level: easy



WRONG2. The PERFORM TIMES uses an explicit counter that is initialized and incremented
within the PERFORM statement.
O A. True
C B. False

See page 356
Level: easy



WRONG3. When nested PERFORM VARYING statements can be combined into a single
statement, this is called PERFORM VARYING AFTER.
C A. True
O B. False

See page 360
Level: medium



WRONG4. PERFORM UNTIL is preferred to PERFORM TIMES when you know in advance how many times to loop.
O A. True
C B. False

See page 355
Level: medium



WRONG5. One method used to terminate an infinite loop in a program running on a PC is to
press the escape key.
C A. True
O B. False

See page 351
Level: hard



WRONG6. An example of a PERFORM structure that does not involve iteration is
PERFORM paragraph-name.
C A. True
O B. False

See pages 342, 343
Level: medium



WRONG7. The simple In-Line PERFORM and the In-Line PERFORM
UNTIL both test a condition.
O A. True
C B. False

See pages 343, 348
Level: hard



WRONG8. GO TO has a scope terminator.
O A. True
C B. False

See page 346
Level: easy



WRONG9. GO TO never tests a condition.
C A. True
O B. False

See page 346
Level: easy



WRONG10. The condition in a PERFORM UNTIL is checked after looping.   
O A. True
C B. False

See page 348
Level: medium



WRONG11. 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.
C A. True
O B. False

See page 343
Level: hard



WRONG12. PERFORM VARYING statements can be nested.
O A. True
O B. False

See page 357
Level: easy



WRONG13. EXIT statements are used to make programs more modular, more structured and less prone to errors.
O A. True
C B. False

See page 347
Level: medium



WRONG14. PERFORM VARYING AFTER depends on the physical placement of the paragraphs to determine which paragraphs are executed.
O A. True
C B. False

See page 345
Level: medium



TEXT15. When is the In-Line PERFORM not a good choice of PERFORM?
_______________________________________________________________________

YOUR ANSWER:

The suggested answer is when there are numerous, but related instructions that may include additional logical control structures


See page 343
Level: hard



TEXT16. What type of PERFORM does not name a paragraph?
________________________________________________________________________

YOUR ANSWER:

The suggested answer is any kind of in-line PERFORM


See pages 343, 348
Level: medium



TEXT17. 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:

The suggested answer is 9


See page 357
Level: easy



TEXT18. 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:

The suggested answer is 10


See page 360
Level: hard



TEXT19. What type of PERFORM has a scope terminator? ____________________________

YOUR ANSWER:

The suggested answer is any In-Line PERFORM


See page 348
Level: medium



TEXT20. What type of PERFORM requires the establishment of a counter? _______________

YOUR ANSWER:

The suggested answer is PERFORM VARYING


See page 357
Level: medium



TEXT21. 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:

The suggested answer is 3


See page 357
Level: medium



TEXT22. The simple PERFORM … END-PERFORM is an example which control structure?
________________________________________________________________________

YOUR ANSWER:

The suggested answer is sequence


See page 342
Level: easy



TEXT23. The PERFORM UNTIL is an example of the control structure called_____________

YOUR ANSWER:

The suggested answer is iteration


See page 348
Level: medium



WRONG24. Which one of the following is recommended code?
O A. PERFORM UNTIL COUNTER = 4
C B. PERFORM UNTIL COUNTER > 10
O C. PERFORM 300-PARA THRU 500-PARA
O D. GO TO 300-PROCESS-RTN
O E. EXIT

See pages 345, 346, 347, 352
Level: medium



WRONG25. Given: PERFORM 400-LABEL-RTN, which of the following is NOT true?
O A. This is an example of modularization.
O B. Every sentence will be executed within 400-LABEL-RTN.
O C. This is used for executing 400-LABEL-RTN from one or more points of a
program.
O D. 400-LABEL-RTN will be executed exactly once.
C E. This is an example of an in-line PERFORM.

See page 342
Level: easy



Retake Test