ref argument default value

Can we assign default value to formal argument with ref direction ?

No. It would not make any sense as a ref argument is not optional.

Default values are used for optional arguments, while the ref qualifier requires the argument to be provided as it links the arguments between the function and the function caller.