PrepAway - Latest Free Exam Questions & Answers

What is the result of executing this program code?

Consider the following program code
%color – (“sun” => “yellow”, “apple” -> “red”);
reverse(%color);
@colorKeys – sort (keys(%color));
foreach(@colorKeys)
{
print($color{$_} . ” “);

}
What is the result of executing this program code?

PrepAway - Latest Free Exam Questions & Answers

A.
The code will output the following
apple sun

B.
The code will output the following
sun apple

C.
The code will output the following
red yellow

D.
The code will output the following
apple red sun yellow

2 Comments on “What is the result of executing this program code?


Leave a Reply