PrepAway - Latest Free Exam Questions & Answers

What is the result of executing this code?

Consider the following code:
%hashA = (“alpha”, “beta”, “gamma”, “alpha”);
%hashA = reverse(%hashA);
print $hashA{“alpha”};
What is the result of executing this code?

PrepAway - Latest Free Exam Questions & Answers

A.
The code outputs the following:
Alpha

B.
The code outputs the following:
Beta

C.
The code outputs the following:
Gamma

D.
The code fails at line 3.

One Comment on “What is the result of executing this code?


Leave a Reply