Vidyalelo
PHP · Q31

Basic PHP

Programming · PHP · question 31

Q31

Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?

A.
When the parameter is Boolean
B.
When the function is being declared as a member of a class
C.
When the parameter is being declared as passed by reference
Answer
D.
When the function contains only one parameter
E.
Never

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board