Select from following answers:- Every optional parameter in the procedure definition must specify a default value
- The default value for an optional parameter must be a constant expression.
- Every parameter following an optional parameter in the procedure definition must also be optional.
- Optional parameters must be defined in the first arguments in the method.

- All Above
Optional parameters are always defined as a Last arguments in the function.
As the name supplies,Optional Parameters are treated as optional,we need not to pass values to Optional Parameters but sometimes it's required.
We always assign its value to anything or we have to provide a default values to it.
We have to write Optional keyword in parameter list in function/Method to indicate that the variable is Optional.
For Ex:- The signature of Optional parameter is
Private Sub update_insert_records(ByVal employee_id As Integer, Optional ByVal is_update_flag_checked As Boolean = False)
End Sub
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator