What is the result of executing this program code?

Consider the following program code:

%_Nifty = (one, two, three, four);
@NiftyKeys = sort(keys(%_Nifty));
foreach(@NiftyKeys)
{
print ($_Nifty{$_} . );
}
What is the result of executing this program code?

Consider the following program code:

%_Nifty = (one, two, three, four);
@NiftyKeys = sort(keys(%_Nifty));
foreach(@NiftyKeys)
{
print ($_Nifty{$_} . );
}
What is the result of executing this program code?

A.
The code will output the following:
one three

B.
The code will output the following:
four two

C.
The code will output the following:
two four

D.
The code will output the following:
four one three two



Leave a Reply 1

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