Description about COBOL functionalities.
There must be a select clause for this file in the file-control paragraph of environment division.
There must be an FD entry in the file section of the data division.
There’ll be a CLOSE stmt in procedure division.
The file name must appear in a WRITE stmt in the procedure division.
Comp
Comp1
Display
Comp3
Working-storage section
66
Elementary
77
14
16
22
10
44
38
14
32
9 times.
10 times.
0 times.
1 times.
35
30
25
40
Every search stmt must contain the AT END clause
Any no of WHEN clause can be used with this verb
This verb can only applied to a table which is defined with the OCCURS clause and INDEXED phases.
WHEN condition is satisfied
5
4
2
1
Date-compiled paragraph, identification division
Object-computer paragraph, configuration section and environment division
File-control paragraph, I-O Section and environment division
I-O control paragraph, I-O Section and environment division
It is not correct because first-name and middle name contain the same PIC Clauses
Not correct because the PIC Clause is missing for the first three data items
Not correct because the level number 03 is missing
It is correct
01 level entry cannot have any picture clause
01 level entries may appear only in the working-storage section and that too after all 77 level entries.
01 level entries may appear only in the File Section
01 level entries may appear in any section of the Data Division
A and b
A and c
C and d
A and d
True
False
The GO TO statement is not essential in the sense that it is possible to write programs without using GO TO.
The target of GO TO statement being a procedure name, avoiding GO TO results in a program with no procedure name.
Indiscriminate use of GO TO statement can make the control structure of a program substantially complex.
GO TO statement is quit handy for a programs that are difficult for others to understand
EVALUATE S04-MBN WHEN '1234' PERFORM HANDLE-SPECIAL-CUSTOMER WHEN '5678' PERFORM HANDLE-REGULAR-CUSTOMER END-EVALUATE.
EVALUATE S04-MBN ALSO S04-MBN WHEN '1234' PERFORM HANDLE-REGULAR-CUSTOMER WHEN '5678' PERFORM HANDLE-SPECIAL-CUSTOMER END-EVALUATE.
EVALUATE S04-MBN WHEN '1234' PERFORM HANDLE-REGULAR-CUSTOMER WHEN '5678' PERFORM HANDLE-SPECIAL-CUSTOMER END-EVALUATE.
EVALUATE TRUE WHEN S04-MBN = '1234' PERFORM HANDLE-REGULAR-CUSTOMER WHEN S04-MBN = '5678' PERFORM HANDLE-SPECIAL-CUSTOMER END-EVALUATE.
1V19
1.198
1v198
1.1984
4.33
22
31
5
Only the first record written of a series of records with duplicate keys can be retrieved
All the records with duplicate keys will be retrieved one by one in any order
All the records with duplicate keys will be retrieved in the order stored in the file
None of the above
0
1
Null
Blank
ORGANISATION IS INDEXED ACCESS IS RANDOM
ORGANISATION IS SEQUENTIAL ACCESS IS RANDOM
ORGANISATION IS INDEXED ACCESS IS DYNAMIC
ORGANISATION IS INDEXED ACCESS IS SEQUENTIAL
LINE-1 is always written
Action depends on the computer system on which the program is run
LINE-2 is always written
Compiler error result
5b 5- 5CR 5bb
5- 5- 5bb 005
5- 5- 5CR bb5
5- 5b 5bb 500
With default compiler option PARM=NODYNAM this will be static
With default compiler option it will throw compile error.
Run time abend.
Irrespective of compiler option the program will act as dynamic call
Eddravieta, eddravieta
Eddravieta, error
Error, eddravieta
Error, error
1
10
11
Infinite
16
22
20
24
Statement A is TRUE, Statement B is False.
Statement A is False, Statement B is False.
Statement A is False, Statement B is True.
Statement A is TRUE, Statement B is True.
42{ & 42}
D20 & M20
D20 & m2
420{ & 420}
-$*
$CR
$Z9
-$CR
All fields are moved.
None of the fields are moved.
AREA-INDEX and PTR are the only fields moved
FIELDA and ARRAY are the only fields moved.
FD INPUT-FILE. 01 COPY IRECORD.
FD INPUT-FILE. COPY I-RECORD.
FD INPUT-FILE. COPY IRECORD.
FD INPUT-FILE. COPY MEMBER IRECORD.
PIC ZZ,ZZ9.99
FILLER or index items
PIC S9(..) COMP-3
PIC 9(..)
All '88 levels that were defined must be used in the IF statement.
TRUE or FALSE should be used on the IF statements.
Relational operators cannot be used when a data name is used for the IF statement
The statement does not contain any errors.
Boundary Violation Exception
Operation exception
Data exception
Decimal divide exception
CNT-1 will contain the total number of characters received by all the receiving fields together.
The value of CNT-1 will be equal to the number of receiving fields acted upon
The value of CNT-1 will be increased by the number of receiving fields acted upon.
CNT-1 will be increased by the number of characters received by the receiving fields
CALL MY-SUB
CALL MY-SUB ON OVERFLOW GO TO MISSING-SUB
CALL MY-SUB USING PARAM-1
CALL MY-SUB USING PARAM-1 UNTIL PARAM-1 > 10.
every formal parameter must appear in the LINKAGE SECTION of the subroutine.
Every formal parameter must appear in the USING phrase of the PROCEDURE DIVISION header of the subroutine.
A formal parameter name can appear more than once in the USING phrase of the PROCEDURE DIVISION header of the subroutine.
A formal parameter can be used as a data name in the PROCEDURE DIVISION statements of the subroutine
(a) An actual parameter must be a data name in any section of the DATA DIVISION except FILE SECTION.
(b) Actual parameters appear in the USING phrase of CALL statement
(c) In the using phrase of CALL statement, same data name can appear more than once
(d) An actual parameter should be a data name described at level 01 or 77.
The execution of the above may result in size error.
The execution of the above will result in size error.
The definition of C is invalid resulting in compilation error
) No error will be there and the program would proceed correctly
(i) and (ii)
(ii) and (iii)
(ii) and (iv)
(i) and (iv)
01 level
88 level
77 level
Any level from 02 to 49
00
10
Compile-time error
None of these
Sequential
Relative
Indexed
All of the above
IF EOF THEN ...
IF EOF IS TRUE THEN ...
IF END-OF-FILE = 'Y' THEN ...
IF END-OF-FILE THEN ...
Reset
Initiate
Value
Generate
PIC X(9)
PIC S9(4) COMP
PIC Z(4)
PIC 9(4)V99
PIC 9(4).99
Infinite loop
Logical error
Runtime error
All of the above
A has the PICTURE CLAUSE 9(4) V99
A has the PIC CLAUSE ZZZ9.9
The Giving Option is missing
A is declared in the file section and not in the working storage section
P3
P1
P2
NONE
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.