interview questions

22 views
Skip to first unread message

arbit

unread,
May 30, 2007, 1:54:16 AM5/30/07
to MFSTUDY
Hi !!
Can anyone help me out with these interview questions:
1. how can data be passed to dynamically called module without using
linkage section...

a)using same file in both calling module and called module.
b)using procedure division copybook.
c)using external variables.
d)using external variables and using same file in both calling and
called module.
e) putting data in common register.

2) 01 A PIC 9(2) value 20.
01 A PIC 9(2) value 90.
01 c PIC 9(2).

ADD A TO B GIVING C ON SIZE ERRROR DISPLAY 'OVERFLOW'

WHAT IS THE VALUE OF C?

A) NONE OF THE LISTED OPTION.
B) PROGRAM DISPLAYS 'OVERFLOW'
C) 10.
D) 110.
E) PROGRAM ABENDS

3) WHICH AMONG THE FOLLOWING ARE ADVANTAGE OF MENTIONING THE BLOCK
SIZE IN COBOL FILE DEFINITION..?

A) IN DASD THE INTER RECORD PHYSICAL SPACE IS LESSENED .SO DISK SPACE
IS SAVED.
B) IF BLOCK SIZE IS MENTIONED IN COBOL THEN WE MAY SKIP THE BLK SIZE
PARAMETER IN JCL.
C) I-0 BECOMES FASTER WHILE SEQUENTIALLY ERADING LARGE FILE ANMD IN
DASD THE INTER PHYSICAL SPACE ISLESSENED .SO DISK SPACE IS SAVED.
D)THAT HELPS COMPILE JCL EXECUETE FASTER.

4) suppose while execuetion .the JCL can't find the load module in the
library psecified in STEPLIB ,what will happen...?
a)program abend with code s0c4
b) program abend with code s0cE
c) program abend with code s0c3
d)program abend with code s806.
e) non of the listed option.

5) where does the load module of a called subroutine reside in case od
static linking..?
a) thereis no concept called static calling.
b) none of the statement is true.
c) they may reside in different load libraries but are linked togethe
with calling load in the os level.
d)they reside in the same load library where the calling module's load
reside.
e) they reside in the same load module of the calling program.

6) MOVE 3 TO WS-VLAUE.
GO TO VALUE-FOUR
VALUE-THREE
VALUE-TWO
VALUE-ONE
DEPENDING ON WS-VALUE.
WHERE WILL THE CONTROL GO AFTER EXECUETION OF THIS CODE...?\

A)CONTROL WILL GO TO VALUE-THREE.
B)CONTROL WILL GO TO VALUE-ONE.
C)CONTROL WILL GO TO VALUE-TWO
D)THIS IS MEANINGLESS CHUNK OF CODE.IT WILL WORK.
E) THE CONTROL WILL START FROM VALUE-FOUR PARA THEN FALL THRU TILL
VALUE-ONE PARA.

7) HOW TO MAKE SURE A SUBROUTINE IS CALLED DYNAMICALLY?

A) BY ADDING DYNAM IN COMPILER OPTION FOR CALLING MODULE.
B) BY ADDING DYNAM IN COMILER OPTION FOR CALLED MODULE AND USING
IDENTIFIER VARIABLE IN THE CALL STATEMENT.
C) BY ADDING DYNAM IN COMILER OPTION FOR CALLING MODULE AND USING
IDENTIFIER VARIABLE IN THE CALL STATEMENT.
D)BY ADDING DYNAM IN COMILER OPTION FOR CALLLED MODULE.
E)BY ADDING DYNAM IN COMILER OPTION FOR CALLING MODULE AND USING
LITERIAL IN THE CALL STATEMENT.

8) CAN KSDS CAN BE READ SEQUENTIALLY BACKWARD...?
A) YES THE FILE NEEDS TO BE OPEN IN EXTEND MODE.
B) NO, READ OPERATION ON KSDS CAN ONLY GO FORWARD.
C) YES THE KSDS NEEDS TO BE STARTED POINTING JUST AFTER THE LAST
RECORD ANS THEN USING READ PREVIOUS.
D)THE KSDS CAN BE STARTED FROM THE END BY MOVING HIGH VALUES TO THE
KEY BU THERE IS NO VERB AS READ PREVIOUS.
E) NONE OF THIS OPTION.

9) how to display the value of an index varibale...?

a) by using another s9(4) variable.
b) value of an index can never be displayed.
c) by using another s9(4) comp variable.
d) simply displaying the index variable itself.
e) by using another s9(4) comp-3 variable..

10) 10) ist there any upper/lower limit for the value in the record
contains clause for the FB files...?

a) no,theoretically it can have any value.
b) upper/lower limits are there but varies from installation to
installtion .
c) record contains can have values double than the block size.
d)upper limit is 2048 and lowerr limit is 2.
e) only upper limit is possible because lower limit is obviosly zero.

my answer...but im not sure..so that im looking for exact answer...

1.c
2.a
3.c
4.d
5.d
6.d
7.e
8.b
9.b
10.b

Reply all
Reply to author
Forward
0 new messages