C# Programming - Control Instructions - Discussion

Discussion Forum : Control Instructions - General Questions (Q.No. 3)
3.
Which of the following statements is correct?
It is not possible to extend the if statement to handle multiple conditions using the else-if arrangement.
The switch statement can include any number of case instances with two case statements having the same value.
A jump statement such as a break is required after each case block excluding the last block if it is a default statement.
The if statement selects a statement for execution based on the value of a Boolean expression.
C# always supports an implicit fall through from one case label to another.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Vimala said:   1 decade ago
The if statement will evaluate for 2 options either 0 or 1, if(0) means it's true and so loop will execute or els it wont.

Raj said:   1 decade ago
Nonzero means true and zero means false.

In C & C++ you can write an integer expression and the compiler will silently convert the integer value to true(nonzero) or false (zero). But C# does not support this behavior.

Post your comments here:

Your comments will be displayed after verification.