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


WRONG1. The library-name is an external name.            
C A. True
O B. False

See page 708
Level: easy



WRONG2. A called program is compiled separately from the calling program.   
C A. True
O B. False

See page 710
Level: medium



WRONG3. Copied entries are compiled separately from the main program.
O A. True
C B. False

See page 711
Level: medium



WRONG4. A called program must be written in COBOL.   
O A. True
C B. False

See page 711
Level: medium



WRONG5. A called program cannot pass parameters back to the calling program.
O A. True
C B. False

See page 712
Level: medium



WRONG6. A LINKAGE SECTION is coded in the calling program.   
O A. True
C B. False

See page 713
Level: medium



WRONG7. A PROCEDURE DIVISION USING statement is coded in the called program.
C A. True
O B. False

See page 713
Level: medium



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

See page 707
Level: easy



WRONG9. The STRING statement requires a DELIMITED BY clause.
C A. True
O B. False

See page 719
Level: medium



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

See page 722
Level: medium



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

See page 713
Level: medium



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

See page 713
Level: easy



WRONG13. Both copied segments and called subprograms promote standardization of coding.
C A. True
O B. False

See pages 707, 711
Level: medium



WRONG14. The INITIAL PROGRAM clause is coded in the main program.
O A. True
C B. False

See page 717
Level: hard



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

YOUR ANSWER:

The suggested answer is It restores the subprogram to its initial state each time it is called.


See page 717
Level: hard



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

YOUR ANSWER:

The suggested answer is it serves as an initial value


See page 716
Level: easy



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

YOUR ANSWER:

The suggested answer is source code


See page 711
Level: hard



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

YOUR ANSWER:

The suggested answer is COPY PRINTFOOTER


See page 708
Level: easy



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

YOUR ANSWER:

The suggested answer is CALL 'PRINTFOOTER'


See page 713
Level: easy



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


YOUR ANSWER:

The suggested answer is It separates the content of a field into separately stored components.


See page 722
Level: easy



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

YOUR ANSWER:

The suggested answer is to count the number of characters actually moved in a string statement


See page 721
Level: medium



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

YOUR ANSWER:

The suggested answer is    FD HR-FILE COPY EMPLOYEE-FILE IN HR02.


See page 708
Level: easy



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

See pages 719, 721
Level: medium



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

See pages 718, 719, 722
Level: medium



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

See pages 713
Level: medium



Retake Test