nerdexam
National_Instruments

200-500 · Question #50

How many elements does the array $pieces contain after the following piece of code has been executed? $pieces = explode("/", "///");

The correct answer is C. 4. See the full explanation below for the reasoning.

Question

How many elements does the array $pieces contain after the following piece of code has been executed? $pieces = explode("/", "///");

Options

  • A0
  • B3
  • C4
  • D5

How the community answered

(54 responses)
  • A
    7% (4)
  • B
    4% (2)
  • C
    74% (40)
  • D
    15% (8)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice