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?

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

A.
PittsburghAtlantaNashvilleBoston

B.
Pittsburgh, Atlanta, Nashville, Boston

C.
Pittsburgh:Atlanta:Nashville:Boston

D.
Pittsburgh Atlanta Nashville Boston



Leave a Reply 0

Your email address will not be published. Required fields are marked *