cobol2

Is this your test? Login to manage it. If not, you can generate an assessment just like it.

This is a non-interactive preview of the quiz content.

1.
1 point
Which of the following formats is invalid?
2.
1 point
The statement PERFORM B010-CALC-PARA VARYING I FROM 1 BY 1 UNTIL I = 5 causes this paragraph to be entered
3.
1 point
MOVE 1 TO A.
MOVE 1 TO B.
PERFORM A-SECTION UNTIL A=2 or B=3.
STOP RUN.
A-SECTION.
ADD 1 TO A.
ADD 1 TO B.
A-EXIT.
EXIT.
How many times will A-SECTION be performed?
4.
1 point
Index name is implicitly defined
5.
1 point
Give the correct precedence of Compiler options:1. JCL PARM
2. High Precedence Installation defaults 3. Low Precedence Installation defaults 4. PROCESS or CBL Statement
6.
1 point
The maximum number of digits in a numeric item is
7.
1 point
With COBOL 85 the use of the word FILLER
8.
1 point
What happens if the "ORGANIZATION IS" clause is omitted in SELECT statement?
9.
1 point
Which level number is used to define elementary data items in the Working-Storage Section?
10.
1 point
Two data names at the same level within a record must
11.
1 point
In COBOL how is the record-length of the internal SORT file specified?
12.
1 point
When the UNTIL option is used with PERFORM verb, the condition is tested
13.
1 point
All programs contained in the Cancelled program are
14.
1 point
IF PAY-CODE = ‘A’IF PAY-BASIC < 500 MOVE 0 TO PAY-DEDUCT
ELSE IF PAY-BASIC < 1000 MOVE 120 TO PAY-DEDUCT
ELSE MOVE 150 TO PAY-DEDUCT
ELSE MOVE 80 TO PAY-DEDUCT.
COMPUTE PAY-DEDUCT = PAY-DEDUCT * 0.9.
15.
1 point
Merge combines two or more identically sorted files
16.
1 point
Given the following file and working-storage items:
FILE SECTION.
FD CARD-FILE
01 CARD-RECORD PIC X(80).
.....
WORKING-STORAGE SECTION.
01 WS-CARD PIC X(80).
1. Given the following file and working-storage items:01 WS-CARD PIC X(80).
After succ
17.
1 point
The VALUE clause
18.
1 point
Data item with Occurs Depending On is followed by Non-subordinate item
19.
1 point
IF CHAR-1 < CHAR-2
WRITE LINE-1
ELSE
WRITE LINE-2

If before executing this statement, CHAR-1 contains alphanumeric literal ‘1’ and CHAR-2 contains alphanumeric literl ‘A’ then ..
20.
1 point
Level numbers range from
21.
1 point
In which COBOL Division is ‘File-Control’ defined?
22.
1 point
The BLANK WHEN ZERO clause can be applied to
23.
1 point
The Procedure Division entry for the called program includes a ______ clause
24.
1 point
Use of the EXTEND option with the OPEN verb causes the file to be positioned
25.
1 point
Object of the OCCURS DEPENDING ON (ODO) clause can be variably located.
26.
1 point
Table Handling is not by the specification of the occurrence number
27.
1 point
Table eliminates the need for separate entries for repeated data items.
28.
1 point
Data names A,B and C assume values 2, 3 and 4 respectively , at some stage in the computation, when the following PROCEDURE DIVISION statement is executed. What is the resulting value of D ? IF (A > B) OR (B < C)
COMPUTE D = A + B * C
29.
1 point
What mode do you use to open a sequential file, in order to add records to the existing file?
30.
1 point
The OCCURS clause specifies tables whose elements can be referred to by indexing or subscripting.
31.
1 point
OCCURS clause can be defined for data items with
32.
1 point
One of the following correctly describe the concepts of ‘statement’ and ‘sentence’ in COBOL
33.
1 point
For accessing records in KSDS file through sequential read and indexed read, which among the following statements is used in SELECT clause?
34.
1 point
SORT work file should be defined in?
35.
1 point
The association between a file-name and physical device on which the file reside is established by the select statement which should appear in
36.
1 point
Index variables cannot be used with MOVE, ADD or SUBTRACT statements.
37.
1 point
In the choices below, a level number is followed by a COBOL clause is expected to go with the data descrtption at that level. Which of them is an incorrect pair
38.
1 point
What is the FILE-STATUS at 'end of file'?
39.
1 point
A STOP RUN statement
40.
1 point
Which of the following is not a VALID COBOL figurative constant
41.
1 point
Release transfers records to the initial phase of sort operation
42.
1 point
Data-names BAL1, BAL2, BAL3 and BAL4 have the following definitions in the WORKING-STORAGE section 01 BAL1 PIC 9-
01 BAL2 PIC 9+
01 BAL3 PIC 9CR
01 BAL4 PIC ZZZ the statement MOVE -5 TO BAL1, BAL2, BAL3, BAL4 will produce
43.
1 point
Which one of the following is an INCORRECT specification for a data-name?
44.
1 point
Occurs can’t be defined for a data item which has a level number
45.
1 point
OCCURS clause defines tables of
46.
1 point
Which of the following declarations is essential in the IDENTIFICATION DIVISION
47.
1 point
The COPY statement is a library statement that places prewritten text in a COBOL program.
48.
1 point
Which of the following is an INVALID paragraph name
49.
1 point
Index name can be associated with any other data hierarchy
50.
1 point
What is the correct interpretation of the statement PERFORM B010-PROCESS-PARA UNTIL STATUS = 1.