nerdexam
Zend

200-710 · Question #18

What is the result of the following bitwise operation in PHP? 1 ^ 2

The correct answer is B. 3. See the full explanation below for the reasoning.

PHP Basics

Question

What is the result of the following bitwise operation in PHP? 1 ^ 2

Options

  • A1
  • B3
  • C2
  • D4
  • E-1

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    78% (21)
  • D
    7% (2)
  • E
    11% (3)

Topics

#bitwise XOR#binary operators#bitwise arithmetic#operators

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice