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


WRONG1. An imperative statement performs an operation only when an existing condition is true.
O A. True
C B. False

See page 302
Level: easy



WRONG2. The following is a conditional statement:
   PERFORM 300-LABEL-RTN      
O A. True
C B. False

See page 302
Level: easy



WRONG3. IF-THEN-ELSE statements are used to code conditional control structures.   
C A. True
O B. False

See page 301
Level: easy



WRONG4. In an IF statement, a CONTINUE clause may be used with an ELSE clause.
O A. True
C B. False

See page 309
Level: medium



WRONG5. Alphanumeric comparisons may vary in result from one computer to another.
C A. True
O B. False

See page 307
Level: medium



WRONG6. Numeric comparisons may vary in result from one computer to another.   
O A. True
C B. False

See page 306
Level: easy



WRONG7. The following conditions are equivalent:
   (1) A NOT > B      (2) A < = B   
C A. True
O B. False

See page 314
Level: medium



WRONG8. The condition NOT NEGATIVE is equivalent to the condition POSITIVE.   
O A. True
C B. False

See page 321
Level: medium



WRONG9. A condition-name is defined on level 66 in the DATA DIVISION.      
O A. True
C B. False

See page 323
Level: medium



WRONG10. ASCII is an example of a commonly used internal code for representing alphanumeric data.   
C A. True
O B. False

See page 306
Level: easy



WRONG11. In a compound conditional, the reserved word OR is used when all of several
conditions must be met in order for a statement to be executed.
O A. True
C B. False

See page 315
Level: easy



WRONG12. A CLASS test will test if a field is POSITIVE, NEGATIVE or ZERO.
O A. True
C B. False

See page 318
Level: easy



WRONG13. With DeMorgan's Rule, the condition NOT ( A = 5 AND B = 9 ) is equivalent to the
condition NOT A = 5 AND NOT B = 9
O A. True
C B. False

See page 322
Level: hard



TEXT14. In COBOL what multiple selection structure is implemented with the verb EVALUATE? ___________________________________________________________

YOUR ANSWER:

The suggested answer is CASE


See page 301
Level: easy



TEXT15. CONTINUE is used within what statement where it acts as a place holder? ________

YOUR ANSWER:

The suggested answer is IF


See page 308
Level: medium



TEXT16. What value is in Y after the following is executed? ___________________________
   IF 1 = 1 OR 5 > 8 AND 3 > 5
      MOVE 0 TO Y
   ELSE
      MOVE 1 TO Y
   END-IF

YOUR ANSWER:

The suggested answer is 0


See page 316
Level: hard



TEXT17. Given the following:
   03   VEGETABLE    PIC 9.
      88   GREEN-BEANS   VALUE 1.
GREEN-BEANS is true when VEGETABLE has the value ________________________

YOUR ANSWER:

The suggested answer is 1


See page 323
Level: easy



TEXT18. Write a single IF statement to PERFORM 500-RTN if NUM is between 5 and 8,
inclusive of the end points.__________________________________________________

YOUR ANSWER:

The suggested answer is IF NUM > = 5 AND < = 8 PERFORM 500-RTN


See page 316
Level: medium



TEXT19. In a nested conditional it is recommended that each IF clause should be paired with an _____________________________________________________________________.

YOUR ANSWER:

The suggested answer is ELSE


See page 311
Level: medium



TEXT20. Given the following sentence:
   IF A = 2
      IF B = 1
         PERFORM 300-RTN-1
      ELSE
         PERFORM 300-RTN-2
      END-IF
   ELSE
      IF B = 2
         PERFORM 300-RTN-3
      ELSE
         PERFORM 300-RTN-4
      END-IF
   END-IF
What routine is executed if A = 1 and B = 2? ___________________________________

YOUR ANSWER:

The suggested answer is 300-RTN-3


See page 316
Level: medium



TEXT21. Given the statement:
   IF A = 1 AND B = 2 AND C = 3
      PERFORM 300-A-RTN
   ELSE
      PERFORM 300-B-RTN
   END-IF
When will 300-A-RTN be performed? ________________________________________

YOUR ANSWER:

The suggested answer is A = 1, B = 2, C = 3


See page 316
Level: medium



WRONG22. Which of the following is NOT a reserved word?
C A. NONE
O B. OTHER
O C. WHEN
O D. AND
O E. CONTINUE

See pages 308, 315, 325
Level: easy



WRONG23. Which of the following is NOT a legal scope terminator?
O A. END-ADD
O B. END-IF
C C. END-MOVE
O D. END-EVALUATE
O E. END-PERFORM

See pages 302, 325, Chapter 7
Level: medium



WRONG24. Each of the following terms is valid in a COBOL IF-statement EXCEPT:
O A. END-IF
O B. ELSE
O C. CONTINUE
C D. OTHERWISE
O E. THEN

See pages 302, 308
Level: medium



WRONG25. Which of the following conditions is illegal in COBOL?
O A. A > = 3
C B. A < > 3
O C. A = 3 OR 4
O D. A IS LESS THAN 3
O E. A NOT = 3

See page 314
Level: medium



Retake Test