nerdexam
Zend

200-530 · Question #505

In which of the following ways does the identity operator === compare two values?

The correct answer is A. It evaluates to true only if the operands are of the same data type and have the same value. See the full explanation below for the reasoning.

Question

In which of the following ways does the identity operator === compare two values?

Options

  • AIt evaluates to true only if the operands are of the same data type and have the same value.
  • BIt evaluates to true if the two operands are equivalent.
  • CIf the two values are strings, it performs a lexical comparison.
  • DIt is an alias of strcmp() function.

How the community answered

(42 responses)
  • A
    81% (34)
  • B
    5% (2)
  • C
    12% (5)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice