Multiple choice .net

Which part of a function procedure declaration statement is optional?

  1. Datatype

  2. Function

  3. Parameters

  4. Private

  5. ProcedureName

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

A function declaration can omit parameters if it takes no arguments - the empty parentheses are still required but the parameter list between them can be empty. However, the keyword 'Function', the return Datatype, the ProcedureName, and scope modifiers like 'Private' are all essential parts of the declaration syntax.