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)- A4% (1)
- B9% (2)
- C83% (19)
- D4% (1)
Community Discussion
No community discussion yet for this question.