Vidyalelo
C# Programming · Q2

Functions and Methods in C Sharp

Programming · C# Programming · question 2

Q2

What is the purpose of a return type in a method declaration in C#?

A.
To specify the access modifier of the method
B.
To specify the type of data returned by the method
Answer
C.
To specify the parameters of the method
D.
None of the above

Answer: Option B

Solution

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