nerdexam
National_Instruments

200-500 · Question #104

What will be the value of $b after running the following code? $a = array('c', 'b', 'a'); $b = (array)$a;

The correct answer is B. array('c', 'b', 'a'). See the full explanation below for the reasoning.

Question

What will be the value of $b after running the following code? $a = array('c', 'b', 'a'); $b = (array)$a;

Options

  • ATRUE
  • Barray('c', 'b', 'a')
  • Carray(array('c', 'b', 'a'))
  • DNone of the above

How the community answered

(63 responses)
  • A
    8% (5)
  • B
    84% (53)
  • C
    3% (2)
  • D
    5% (3)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice