PrepAway - Latest Free Exam Questions & Answers

What is the value of $city after the code is executed?

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

PrepAway - Latest Free Exam Questions & Answers

A.
PittsburghAtlantaNashvilleBoston

B.
Pittsburgh, Atlanta, Nashville, Boston

C.
Pittsburgh:Atlanta:Nashville:Boston

D.
Pittsburgh Atlanta Nashville Boston


Leave a Reply