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


WRONG1. A run-time error is listed by the compiler.      
O A. True
C B. False

See page 432
Level: easy



WRONG2. Logic errors are usually harder to find than syntax errors.   
C A. True
O B. False

See page 432
Level: easy



WRONG3. Even after testing and debugging, a program cannot be guaranteed to be error free.
C A. True
O B. False

See page 433
Level: hard



WRONG4. Rule violations cause program interrupts.   
O A. True
C B. False

See page 432
Level: medium



WRONG5. Attempting to divide by zero will cause a syntax error.
O A. True
C B. False

See page 432
Level: easy



WRONG6. Data that is not alphabetic must be numeric.   
O A. True
C B. False

See page 435
Level: hard



WRONG7. A class test will verify that input is the right data type.   
O A. True
C B. False

See page 434
Level: medium



WRONG8. Data that is alphanumeric is also numeric.   
O A. True
C B. False

See page 435
Level: hard



WRONG9. The count field in an INSPECT statement must be set to zero prior to the execution of the statement.
C A. True
O B. False

See page 436
Level: medium



WRONG10. Test data helps eliminate logic errors.
C A. True
O B. False

See page 432
Level: easy



WRONG11. The following is an example of a sign test.
      IF NUM-IN IS POSITIVE ….
C A. True
O B. False

See page 434
Level: easy



WRONG12. This is a debugging tip: If you use a line counter for pagination, use enough test data to print several pages.
C A. True
O B. False

See pages 432, 433
Level: medium



TEXT13. The Law that states that if something can go wrong, it will, is called _____________

YOUR ANSWER:

The suggested answer is Murphy's Law


See page 434
Level: medium



TEXT14. Another term for audit trail is ____________________________________________

YOUR ANSWER:

The suggested answer is control listing


See page 446
Level: easy



TEXT15. Program errors consist of logic errors and _________________________________

YOUR ANSWER:

The suggested answer is syntax errors


See page 432
Level: easy



TEXT16. The following is an example of what type of test? ___________________________
   IF AMT IS NUMERIC …

YOUR ANSWER:

The suggested answer is class test


See page 434
Level: easy



TEXT17. The following is an example of what type of test?
   IF AMOUNT-IN = SPACES …

YOUR ANSWER:

The suggested answer is missing value test


See page 435
Level: medium



TEXT18. What statement can be used to replace all spaces with zeros in a numeric field?
________________________________________________________________________

YOUR ANSWER:

The suggested answer is INSPECT


See page 435
Level: medium



TEXT19. The INITIALIZE statement, when used with a group field, will ________________________________________________________________________

YOUR ANSWER:

The suggested answer is set all numeric elementary items to zero and all non-numeric elementary items to spaces.


See page 453
Level: medium



TEXT20. What value is in COUNT after the following statements are executed? __________
      MOVE 0 TO COUNT
INSPECT 45367 TALLYING COUNT FOR CHARACTERS
         AFTER INITIAL 5.

YOUR ANSWER:

The suggested answer is 3


See page 436
Level: medium



TEXT21. What value is in COUNT after the following statements are executed? __________
MOVE 0 TO COUNT
INSPECT 12111131 TALLYING COUNT FOR LEADING 1
AFTER INITIAL 2

YOUR ANSWER:

The suggested answer is 4


See page 437
Level: medium



TEXT22. What value is in COUNT after the following statements are executed? __________
MOVE 0 TO COUNT
INSPECT 1234543212345 TALLYING COUNT FOR ALL 4
AFTER INITIAL 3

YOUR ANSWER:

The suggested answer is 3


See page 437
Level: medium



TEXT23. Using the wrong instruction is an example of what type of error? ________________

YOUR ANSWER:

The suggested answer is logic error


See page 432
Level: easy



WRONG24. The following is an example of what type of test?
   IF HOURS-IN < 10 OR > 50 ...
O A. limit test
O B. class test
O C. sign test
C D. range test
O E. missing value test

See page 440
Level: easy



WRONG25. Given the following:
   03    STATE-CODE-IN   PIC 9.
      88   NY-NJ-CONN-PA   VALUES 1 THRU 4.
      88   MA-NH-MASS-RI   VALUES 5 THRU 8.
Each of the following is a valid format of the EVALUATE verb EXCEPT:
O A. EVALUATE STATE-CODE-IN
   WHEN 1 THRU 4 ....
O B. EVALUATE TRUE
   WHEN STATE-CODE-IN > 4 ...
C C. EVALUATE STATE-CODE-IN
   WHEN < = 4 ...
O D. EVALUATE STATE-CODE-IN <= 4
   WHEN TRUE ...
O E. EVALUATE TRUE
   WHEN NY-NJ-CONN-PA ...

See pages 444, 445
Level: hard



Retake Test