adplus-dvertising
frame-decoration

Question

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

1. If we do not return a value from a subroutine then a value -1 gets returned.
2. Subroutine definitions cannot be nested.
3. Subroutine can be called recursively.
4. To return the control from middle of a subroutine exit subroutine should be used.
5. Subroutine calls can be nested.

a.

1, 2, 3

b.

2, 3, 5

c.

3, 5

d.

3, 4

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 subroutines used in C#.NET? 1. If we do not return a value from a subroutine then a value -1 gets returned. 2. Subroutine...