Question & Answer: at runtime. Value will be assigned when it accessed first time Are the same as co…..

Question 1 5 pts Which of the following is true for ReadOnly variables? Value will be assigned at compile time. O Value can be assigned at runtime. O Value will be assigned when it accessed first time Are the same as constants Question 2 5 pts Func and Action are the types of Utility function Delegate O Event structs

Computer Science C#

Which of the following is true for ReadOnly variables? Value will be assigned at compile time. Value can be assigned at runtime. Value will be assigned when it accessed first time Are the same as constants Func and Action are the types of ___. Utility function Delegate Event structs

Expert Answer

 

1. b) Value can be assigned at runtime.

In ReadOnly variable,A value can be assigned at runtime using Non-static Constructor where as a Static ReadOnly variable is used to assign a value at either run time or compile time.

2. b) Delegate

Still stressed from student homework?
Get quality assistance from academic writers!