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?

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?

A.
reverse(%chars);

B.
%chars =reverse(%chars);

C.
reverse(%chars) = %chars;

D.
invert(%chars);



Leave a Reply 1

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