PrepAway - Latest Free Exam Questions & Answers

Which one of the following choices will reverse the key/value pairing of the code?

Consider the following code:
%chars = (“a”, “100”, “b”, “90”, “c”, “80”);
Which one of the following choices will reverse the key/value pairing of the code?

PrepAway - Latest Free Exam Questions & Answers

A.
reverse(%chars);

B.
%chars =reverse(%chars);

C.
reverse(%chars) = %chars;

D.
invert(%chars);

One Comment on “Which one of the following choices will reverse the key/value pairing of the code?


Leave a Reply