What is the output of this code?

Consider the following program code
@array – ( “Y”, “W”, “X”);
@array = sort (@array);
unshift(@array, “Z”);
print($array[0]);
What is the output of this code?

Consider the following program code
@array – ( “Y”, “W”, “X”);
@array = sort (@array);
unshift(@array, “Z”);
print($array[0]);
What is the output of this code?

A.
W

B.
X

C.
Y

D.
Z



Leave a Reply 1

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