Multiple choice .net

How many return statements are allowed in a Function Procedure?

  1. 1

  2. 2

  3. 3

  4. There is no limit.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Function procedures can have multiple return statements - you can return from different points based on conditional logic. While good practice often suggests a single exit point, the language allows unlimited return statements anywhere in the function body. Each return statement must specify a value of the function's return type.