nerdexam
National_Instruments

200-500 · Question #189

What is the result of the following code? $a = 1; $b = "1"; var_dump($a === $b);

The correct answer is B. bool(false). See the full explanation below for the reasoning.

Question

What is the result of the following code? $a = 1; $b = "1"; var_dump($a === $b);

Options

  • Abool(true
  • Bbool(false)
  • CParser error
  • DNULL

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    76% (31)
  • C
    15% (6)
  • D
    7% (3)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice