1. A run-time error is listed by the compiler.      
A.True
B.False


2. Logic errors are usually harder to find than syntax errors.   
A.True
B.False


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


4. Rule violations cause program interrupts.   
A.True
B.False


5. Attempting to divide by zero will cause a syntax error.
A.True
B.False


6. Data that is not alphabetic must be numeric.   
A.True
B.False


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


8. Data that is alphanumeric is also numeric.   
A.True
B.False


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


10. Test data helps eliminate logic errors.
A.True
B.False


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


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


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

Answer:


14. Another term for audit trail is ____________________________________________

Answer:


15. Program errors consist of logic errors and _________________________________

Answer:


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

Answer:


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

Answer:


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

Answer:


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

Answer:


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

Answer:


21. 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

Answer:


22. 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

Answer:


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

Answer:


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


25. 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:
A.EVALUATE STATE-CODE-IN
   WHEN 1 THRU 4 ....
B.EVALUATE TRUE
   WHEN STATE-CODE-IN > 4 ...
C.EVALUATE STATE-CODE-IN
   WHEN < = 4 ...
D.EVALUATE STATE-CODE-IN <= 4
   WHEN TRUE ...
E.EVALUATE TRUE
   WHEN NY-NJ-CONN-PA ...



This is the end of the test. When you have completed all the questions and reviewed your answers, press the button below to grade the test.