PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

A.
W

B.
X

C.
Y

D.
Z

One Comment on “What is the output of this code?


Leave a Reply