Functions and Subroutines

Q1:
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

E None of these

ANS:B - 2, 3, 5

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.