Vidyalelo
C# Programming · Q1

Control Flow Statements in C Sharp

Programming · C# Programming · question 1

Q1

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

A.
To execute a block of code repeatedly
B.
To handle exceptions
C.
To execute a block of code if a condition is true
Answer
D.
To define a method

Answer: Option C

Solution

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