12. What is formal and actual argument?
13. Distinguish between Call by Reference and Call by Value?
14. Choose correct answer
1. Which of these is correct about passing an argument by call-by-value
process?
(a) Copy of argument is made into the formal parameter of the subroutine
(b) Reference to original argument is passed to formal parameter of the
subroutine
(c) Copy of argument is made into the formal parameter of the subroutine
and changes made on parameters of subroutine have effect on original
argument
(d) Reference to original argument is passed to formal parameter of the
subroutine and changes made on parameters of subroutine have effect
on original argument
2. What is the process of defining a method in terms of itself, that is a method
that calls itself?
(a) Polymorphism (b) Abstraction
(c) Encapsulation (d) Recursion
3. What is the output of this program?
class overload
Answers
Answered by
0
Answer:
12.
The arguments that are passed in a function call are called actual arguments. These arguments are defined in the calling function. These are the variables or expressions referenced in the parameter list of a subprogram call. There is no need to specify datatype in actual parameter.
These are the variables or expressions referenced in the parameter list of a subprogram specification. The datatype of the receiving value must be defined. The scope of formal arguments is local to the function definition in which they are used.
Attachments:
Similar questions