Vidyalelo
C# Programming · Q6

Control Flow Statements in C Sharp

Programming · C# Programming · question 6

Q6

What is the purpose of the 'switch' statement in C#?

A.
To define a method
B.
To handle exceptions
C.
To iterate over a collection
D.
To execute different blocks of code based on the value of an expression
Answer

Answer: Option D

Solution

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