Home »
MCQs »
Scala MCQs
The default parameters are used when –
70. The default parameters are used when -
- No parameter is passed
- The extra parameter is passed
- Always when the function is called
- None of these
Answer: A) No parameter is passed
Explanation:
The default arguments are used when you provide no arguments or only few arguments while calling a function.