1. The library-name is an external name.            
A.True
B.False


2. A called program is compiled separately from the calling program.   
A.True
B.False


3. Copied entries are compiled separately from the main program.
A.True
B.False


4. A called program must be written in COBOL.   
A.True
B.False


5. A called program cannot pass parameters back to the calling program.
A.True
B.False


6. A LINKAGE SECTION is coded in the calling program.   
A.True
B.False


7. A PROCEDURE DIVISION USING statement is coded in the called program.
A.True
B.False


8. To bring into a program pre-written COBOL code that is stored in a library, use the statement CALL.
A.True
B.False


9. The STRING statement requires a DELIMITED BY clause.
A.True
B.False


10. The receiving field of a STRING statement may be a group item.
A.True
B.False


11. The last executed statement in the called program is STOP PROGRAM.
A.True
B.False


12. Items passed between calling and subprogram are described in the subprogram in the LINKAGE SECTION.
A.True
B.False


13. Both copied segments and called subprograms promote standardization of coding.
A.True
B.False


14. The INITIAL PROGRAM clause is coded in the main program.
A.True
B.False


15. What is the purpose of the INITIAL PROGRAM clause?
________________________________________________________________________

Answer:


16. What is the purpose of a seed in a random number generator?
________________________________________________________________________

Answer:


17. A CALL statement bring compiled code to the source program while a COPY statement brings __________________________________________________________

Answer:


18. If a library entry is named PRINTFOOTER and it consists of PROCEDURE DIVISION code, the statement that will copy the code into the PROCEDURE DIVISION is ______________________________________________________________________

Answer:


19. The called program has this entry: PROGRAM-ID. PRINTFOOTER.
The call statement in the calling program is ____________________________________

Answer:


20. What is the purpose of the UNSTRING statement?
________________________________________________________________________


Answer:


21. What is the purpose of the WITH POINTER clause in a STRING statement?
_______________________________________________________________________

Answer:


22. A library, HR02, contains the code for EMPLOYEE-FILE. Write the COPY statement to copy this entire file description from the library into HR-FILE in the main program.

Answer:


23. A STRING statement may use any of the following EXCEPT:
A.DELIMITED BY
B.WITH POINTER
C.ON OVERFLOW
D.END-STRING
E.WITH COUNTER


24. Each of the following is true about the STRING statement EXCEPT:
A.It combines several fields to form one concise field.
B.It performs concatenation in COBOL.
C.If DELIMITED BY SIZE is used, all DELIMITED BY clauses must be BY SIZE.
D.It can be used to insert specific characters in a field.
E.All literals must be nonnumeric.


25. When parameters are passed between the calling and subprogram,
the subprogram must contain each of the following EXCEPT:
A.PROGRAM-ID entry
B.EXIT PROGRAM
C.LINKAGE SECTION
D.PROCEDURE DIVISION
E.CALL ... USING



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.