0% (0 out of 16 correct) |
|
![]() | 1. |
An OCCURS clause is defined in the DATA DIVISION.
![]() Level: easy |
![]() | 2. |
Tables and arrays are used for the same purposes.
![]() Level: medium |
![]() | 3. |
Group items may not be defined by an OCCURS clause.
![]() Level: easy |
![]() | 4. |
A table is used for looking up or referencing data.
![]() Level: medium |
![]() | 5. |
An OCCURS clause may only be defined in WORKING-STORAGE.
![]() Level: easy |
![]() | 6. |
An index must be defined separately in WORKING-STORAGE.
![]() Level: medium |
![]() | 7. |
An OCCURS clause is used on level 88.
![]() Level: easy |
![]() | 8. |
A PERFORM VARYING cannot be used with an index.
![]() Level: medium |
![]() | 9. |
To do a binary search on a list of items, the list must be sequenced.
![]() Level: medium |
![]() | 10. |
An index can only reference the array it is defined with.
![]() Level: medium |
![]() | 11. |
A subscript is used with SEARCH and SET statements.
![]() Level: medium |
![]() | 12. |
SEARCH ITEM performs a binary search.
![]() Level: easy |
![]() | 13. |
An index or index register uses displacement values to access table addresses.
![]() Level: medium |
![]() | 14. |
A WHEN OTHER clause in the SEARCH statement is executed when the search is not successful and no match is found.
![]() Level: easy |
![]() | 15. | What statement can be used to initialize or change the value of an index? ________________________________________________________________________ YOUR ANSWER: ![]() See page 501 Level: easy |
![]() | 16. | What type of table has values stored on secondary storage devices? ______________ YOUR ANSWER: ![]() See page 505 Level: hard |
![]() | 17. | Parallel tables are processed by what type of SEARCH statement?_______________ YOUR ANSWER: ![]() See page 512 Level: hard |
![]() | 18. |
An item defined by an OCCURS clause may be initialized by what clause
in the DATA DIVISION?
_______________________________________________________. YOUR ANSWER: ![]() See page 473 Level: medium |
![]() | 19. | What type of SEARCH statement requires that ITEM be sequenced? _____________ YOUR ANSWER: ![]() See page 513 Level: medium |
![]() | 20. | 01 SCOUT-TABLE. 05 SCOUT OCCURS 10 TIMES. 10 SCOUT-NAME PIC X(10). 10 NUMBER-BOXES-SOLD PIC 999. In the above example, what single PROCEDURE DIVISION statement will cause all occurrences of SCOUT-NAME to have value spaces and all occurrences of NUMBER-BOXES-SOLD to have value zeros?__________________________________________ YOUR ANSWER: ![]() See page 473 Level: medium |
![]() | 21. | SEARCH ITEM performs what type of search? _____________________________ YOUR ANSWER: ![]() See page 499 Level: easy |
![]() | 22. | What must Items in an array share in order to be defined by an OCCURS clause? ________________________________________________________________________ YOUR ANSWER: ![]() See page 468 Level: easy |
![]() | 23. | 05 ITEM OCCURS 100 TIMES PIC 99V99. A subscript, SUB, is defined in WORKING-STORAGE to reference the above array. What PIC should SUB have? ________________________________________________ YOUR ANSWER: ![]() See page 472 Level: easy |
![]() | 24. |
Each of the following is true about an index EXCEPT:
![]() Level: medium |
![]() | 25. |
Which of the following is NOT TRUE about a multi-level OCCURS clause?
![]() Level: medium |