nerdexam
Microsoft

98-361 · Question #109

You run the following code: What is the value of result when the code has completed?

The correct answer is B. 10. 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…

Understanding Core Programming

Question

You run the following code:

What is the value of result when the code has completed?

Options

  • A0
  • B10
  • C20
  • D30

How the community answered

(46 responses)
  • A
    2% (1)
  • B
    85% (39)
  • C
    9% (4)
  • D
    4% (2)

Explanation

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.

Topics

#code tracing#loops#variable state#program execution

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice