adplus-dvertising
frame-decoration

Question

Which of the following statements are correct about functions and subroutines used in C#.NET?

1. A function cannot be called from a subroutine.
2. The ref keyword causes arguments to be passed by reference.
3. While using ref keyword any changes made to the parameter in the method will be reflected in that variable when control passes back to the calling method.
4. A subroutine cannot be called from a function.
5. Functions and subroutines can be called recursively.

a.

1, 2, 4

b.

2, 3, 5

c.

3, 5

d.

4, 5

Posted under C# programming

Answer: (b).2, 3, 5

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following statements are correct about functions and subroutines used in C#.NET? 1. A function cannot be called from a subroutine. 2. The ref keyword causes...