Which one of the following choices is a unary operator that can apply to only a single variable?
Answer : A
Which one of the following statements uses correct syntax and expressions?
Answer : C
The values function performs which task?
Answer : B
Consider the following program code:
@array = (10, Masami, 10..13, Niklas);
for ($i = 1; $i < $#array; $i++)
{
print($array[$i] );
}
What is the result of executing this program code?
Answer : A
Consider the following assignments
$x = 9
$y = 7
$z = 5
Given these assignments, which of the following expressions evaluates as true?
Answer : C
Consider the following program code:
@arrayA = (10, 20, 30);
@arrayB = @arrayA;
$arrayB[1] = 40;
print $arrayA[1];
What is the output of this code?
Answer : B
Which of the following tasks is the least effective in reducing errors in Perl scripts?
Answer : D