nerdexam
CIW

1D0-437 · Question #38

Consider the following code: @cities = qw( Pittsburgh Atlanta Nashville Boston ); $city = join (":", @cities); What is the value of $city after the code is executed?

The correct answer is C. Pittsburgh:Atlanta:Nashville:Boston. See the full explanation below for the reasoning.

Question

Consider the following code:

@cities = qw( Pittsburgh Atlanta Nashville Boston ); $city = join (":", @cities); What is the value of $city after the code is executed?

Options

  • APittsburghAtlantaNashvilleBoston
  • BPittsburgh, Atlanta, Nashville, Boston
  • CPittsburgh:Atlanta:Nashville:Boston
  • DPittsburgh Atlanta Nashville Boston

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    9% (2)
  • C
    83% (19)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice