1. An OCCURS clause is defined in the DATA DIVISION.      
A.True
B.False


2. Tables and arrays are used for the same purposes.
A.True
B.False


3. Group items may not be defined by an OCCURS clause.
A.True
B.False


4. A table is used for looking up or referencing data.
A.True
B.False


5. An OCCURS clause may only be defined in WORKING-STORAGE.   
A.True
B.False


6. An index must be defined separately in WORKING-STORAGE.
A.True
B.False


7. An OCCURS clause is used on level 88.   
A.True
B.False


8. A PERFORM VARYING cannot be used with an index.         
A.True
B.False


9. To do a binary search on a list of items, the list must be sequenced.
A.True
B.False


10. An index can only reference the array it is defined with.
A.True
B.False


11. A subscript is used with SEARCH and SET statements.
A.True
B.False


12. SEARCH ITEM performs a binary search.
A.True
B.False


13. An index or index register uses displacement values to access table addresses.
A.True
B.False


14. A WHEN OTHER clause in the SEARCH statement is executed when the search is not successful and no match is found.
A.True
B.False


15. What statement can be used to initialize or change the value of an index?
________________________________________________________________________

Answer:


16. What type of table has values stored on secondary storage devices? ______________

Answer:


17. Parallel tables are processed by what type of SEARCH statement?_______________

Answer:


18. An item defined by an OCCURS clause may be initialized by what clause in the DATA DIVISION? _______________________________________________________.

Answer:


19. What type of SEARCH statement requires that ITEM be sequenced? _____________

Answer:


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?__________________________________________

Answer:


21. SEARCH ITEM performs what type of search? _____________________________

Answer:


22. What must Items in an array share in order to be defined by an OCCURS clause?
________________________________________________________________________

Answer:


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? ________________________________________________

Answer:


24. Each of the following is true about an index EXCEPT:
A.It is established by an INDEXED BY clause on the OCCURS level.
B.It is used to refer to an item in a table.
C.Subscripts are processed less efficiently than indexes.
D.It is used with a SEARCH statement.
E.It is defined separately in WORKING-STORAGE.


25. Which of the following is NOT TRUE about a multi-level OCCURS clause?
A.COBOL permits up to 7 levels.
B.It may be used for a table.
C.If subscripts are used, a subscript is needed for each level.
D.It may be used for an array.
E.A multi-level SEARCH can be used for table-look-ups.



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.