Home » Microsoft » 98-361 » What is the value of result when the code has completed?
You run the following code:
What is the value of result when the code has completed?
A. 0
B. 10
C. 20
D. 30
Correct Answer: B
Explanation/Reference:
The conditional-OR operator (||) performs a logical-OR of its bool operands. If the first operand evaluates to true, the second operand isn’t evaluated. If the first operand evaluates to false, the second operator determines whether the OR expression as a whole evaluates to true or false.