With in these three which one is the default one Call
Reference, Call By Value, Call By Content.-Which one is
default?

Answers were Sorted based on User's Feedback



With in these three which one is the default one Call Reference, Call By Value, Call By Content.-W..

Answer / sruthi

call by reference is default

Is This Answer Correct ?    6 Yes 0 No

With in these three which one is the default one Call Reference, Call By Value, Call By Content.-W..

Answer / shilpa

we can call the subprogram by refarence or content, but
call by refarence is default.
call by refarence: when we are passing the value from
mainprogram to subprogram if any changes in subprogram it
reflect also in main program but in call by content if any
changes in subprogram it wont reflect on mainprogram.

we can call the subprogram by dynamically or statically.in
this scenario the default is static call. in dynamic call
we call the program by value. in static call we call the
program by literal.
first we understand the main difference between static call
and dynamic call.
if any changes in subprogam in static call it will reflect
in msin program so we can recompile the mainprogram again
but not in dynamic. if we want to change any call program
just change the program name no neeed to change again and
again.dynamic call is faster compared to static call.

Is This Answer Correct ?    6 Yes 2 No

With in these three which one is the default one Call Reference, Call By Value, Call By Content.-W..

Answer / asmara

Call By Reference is the default one.
1) Call By Reference passes the field to the called program
(sub-program). Any changes to the fields is done in the
calling program.Both will occupy same memory space.

2)Call By Content passes a copy of the fields to the called
program(sub-program). Any changes will not affect the
fields in the calling program(Main Program).

3)Call By Value refers to the address of the value (sent by
the calling program) & any change made here will be
reflected in the calling program. In these Both the Actual
and Dummy Parameters are occupy different memory space.

We will called as Formal Parameters in COBOL and where in
PL/I we called it as Dummy parameters.

Is This Answer Correct ?    3 Yes 0 No

With in these three which one is the default one Call Reference, Call By Value, Call By Content.-W..

Answer / sreeram

refer ans 2

In addition to the above, there is no diff b/w call by
value and call by content - both are same

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More COBOL Interview Questions

Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.

3 Answers   iGate,


How do u know what version of cobol u are using?

3 Answers  


can we use variable picture clause as xx.99 in cobol.

3 Answers  


is it possible to declare index in cobol program? if it is not why its tell me pls

3 Answers  


what is the difference between occurs and occurs depending on? i dont think so there is the difference in storage..then why we should use occurs depending on?

9 Answers   TCS, Tech Mahindra,






What is the maximum size of a 01 level item in COBOL I? in COBOL II?

2 Answers   IBM, RBS,


Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $

4 Answers  


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

0 Answers  


what is the result of the following? DIVIDE A INTO B GIVING C. a.C=A/B b.the reminder of B/A is stored in C c.C=B/A d.the reminder of A/B is stored in C

3 Answers   TCS,


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

0 Answers  


Discuss about changing dataset name in proc.

0 Answers  


Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible

7 Answers   TCS,


Categories