Cobol Ques
Cobol Ques
a) Array occurence
b) Displacement from begining of Array
c) It is sequentially accessible
d) Not for Random process
a) A=11,B=0.6,c=10.6
b) A=10,B=0.6,C=10.6
c) A=11,B=0,C=10
d) A=10,B=6,C=10
(3) Which of the following statements will not indicate duplicate key warning if it occurs in
case of an indexed organisation without DUPLICATES Phrase
a) Read
b) Write
c) Rewrite
d) Delete
(4) What will happen if you code GO BACK instead of STOP RUN in a standalone COBOL
program i.e. a program which is not calling any other program?
a) Shows Error
b) Nothing happened
c) Return to previous step
d) Infinite Loop
a) +2431f
b) 02431f
c) 02431
d) +2431
(6) Just one -------- statement allows several alternative paths of execution
a) evaluate
b) if statements
c) perform statement
d) copy statement
a) 8 bytes
b) 4 bytes
c) 16 bytes
d) 24 bytes
a) 2 indexes
b) Subscripts
c) Search
d) Search-all
a) Sign is stored as a hex value in the last nibble (4 bits ) of the storage
b) Sign is over punched with numeric value stored in the last bite
c) Sign is stored in hex value in first 4 bits of storage
d) None of the above
a) 10
b) 05
c) Infinite
d) Execution Error
(15) How do you set a return code to the JCL from a COBOL program
(16) Indicate which one of the following is not true about the SET verb.
a) The verb can be used to set one or more indexes to a particular value
b) The verb can be used to move the current value of an index to one or more identifiers
c) The verb can be used to increment one or more identifiers by a positive integral value.
d) The verb can be used to decrement one or more indexes by a positive integral value.
(17) PERFORM ACCULATE-TOTALS VARYING A FROM 1 BY 2 UNTIL A ] 2 AFTER B FROM 1 BY
1 UNTIL B ] 2 AFTER C FROM 2
a) 10
b) 09
c) 11
d) infinite loop.
a) 10
b) infinite loop
c) 2
d) 0
a) 12
b) 10
c) 09
d) Infinite Loop
(20) Indicate what value will be displayed after the execution of the DISPLAY statement in
the paragraph named
P3.
MOVE 2 to M.
P1.
PERFORM P2 9 TIMES.
P2.
MULTIPLY 2 BY M.
P3.
DISPLAY M
a) 2048
b) 2036
c) 1048
d) None of the above
(21) What is the compiler option to show line where the error occurred?
a) ARITH(EXTEND)
b) TEST
c) RENT
d) ARITH(COMPAT)
if the IN-FILE contains 1000 records what value will be displayed after the PERFORM is
over? assume that NO-OF-REC has PIC 9(4)
a) 1000
b) 1001
c) 1
d) None of the above
(23)
77 WA PIC 9(3)V99 VALUE 23.75
77 WB PIC ZZ9V99 VALUE 123.45
After MOVE WA TO WB The contents of WB will be ?
(24) The ---- Statements has always allowed you to develop program functions that can be
stored seperately from other program code and then be included in the program at
a) Perform and Evaluate
b) copy and perform
c) call and perform
d) Copy and call
a) CALL MY-SUB
b) CALL MY-SUB ON OVERFLOW GO TO PARA1.
c) CALL MY-SUB USING PARM-1.
d) CALL MY-SUB USING PARM-1 UNTIL PARM-1=10