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?
Which one of the following statements opens a file for appending?
Consider the program code in the attached exhibit. What is the result of executing this program code?

Consider the following command:
perl runme.pl arg1 arg2 arg3
Given this command issued on the command line, what is the value of $#ARGV?
Consider the following program code:
1.$x = 100;
2.$y = "-25";
3.$sum = $x + $y;
4.
5.print $sum;
What is the result of executing this program code?
Consider the following assignments:
$x = 9
$y = 7
$z = 5
Given these assignments, which one of the following expressions evaluates as true?
Which statement writes data to the filehandle OUTPUT?
Consider that a file named test.txt contains this line of text:
One line of test text.
What is the output of the following lines of code?
$file = "test.txt";
open (OUT, "<$file") || (die "cannot open $file: $!");
seek(OUT, 15, 0);
read(OUT, $buffer, 5);
print $buffer . "\n";
print tell(OUT);
Consider the following statement:
@array1 = (9, "A", 0..9, "PERL");
Given this statement, @array1 consists of how many elements?
Which one of the following choices will replace all occurrences of the word perl with the word Perl?