Re: interview questions
- From: Binyamin Dissen <postingid@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 May 2007 11:23:17 +0300
On 29 May 2007 22:40:10 -0700 "ebookstation@xxxxxxxxx"
<ebookstation@xxxxxxxxx> wrote:
:>Hi !!
:>Can anyone help me out with these interview questions:
Many can.
:>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.
Why would you want to avoid the linkage section?
:>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
Compiler error.
:>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.
Why would you want to do that?
:>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.
Depends.
:>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.
I thought static linking was out of style.
:>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.
You will go to the employment for failing to write structured code.
:>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.
By not calling it staticly, of course.
:>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.
Depends if the KSDS is on cards.
:>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..
By abending. The index variable will be in the dump.
:>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.
Why would you specify it?
:>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
--
Binyamin Dissen <bdissen@xxxxxxxxxxxxxxxxxx>
http://www.dissensoftware.com
Director, Dissen Software, Bar & Grill - Israel
Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.
I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.
.
- Follow-Ups:
- Re: interview questions
- From: Michael Mattias
- Re: interview questions
- References:
- interview questions
- From: ebookstation@xxxxxxxxx
- interview questions
- Prev by Date: Re: interview questions
- Next by Date: Re: create STR filename
- Previous by thread: Re: interview questions
- Next by thread: Re: interview questions
- Index(es):
Relevant Pages
|