Multiple choice technology programming languages

True or False: You don’t need to specify a default value for an optional parameter

  1. True

  2. False

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

Optional parameters require a default value - that's what makes them 'optional' (the caller can omit them, and the default is used). The statement that you don't need to specify a default value is false.