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

What is the compute verb? How is it used?

0 Answers  


Under which scenario you would go for a static call as opposed to dynamic call?

5 Answers   TCS,


study the following 01 A PIC 99V0 VALUE 5 01 B PIC 9V9 VALUE 6 01 C PIC 99V9 VALUE 2.5 01 D PIC 99 VALUE 3 COMPUTE A ROUNDED B C = A+B*C/D ON SIZE ERROR PERFORM PRINT-ERROR the comments of A.B.C after execution of the above statement are a.A=10 B=0 C=10 b.A=10 B=9.9 C=9.9 c.A=10 B=0 C=9.9 d.A=10 B=6 C=10

4 Answers   TCS,


what is SYNCHRONIZATION?

3 Answers   Syntel,


Write a program to explain size error.

0 Answers  






what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?

1 Answers   HCL,


when COMP-3 is preferrable?

3 Answers   Patni,


What guidelines should be followed to write a structured Cobol program?

1 Answers  


I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?

1 Answers  


Why occurs cannot be used in 01 level in COBOL?

0 Answers   Arigo Infotech,


What are the different forms of EVALUATE statement?

2 Answers   IBM, Micro Labs,


What is the difference between a binary search and a sequential search?

10 Answers  


Categories