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?

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

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.



Leave a Reply 1

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