1D0-437 Free Dumps Study Materials
Question 15: print $result;
What is the result of executing this program code?
A. The code will fail at line 3 because % is a unary operator.
B. The code will output the following:
10E+16
C. The code will output the following:
10
D. The code will fail at line 5 because $result is not enclosed by parentheses.
Correct Answer: C
4. Which statement writes data to the filehandle OUTPUT?
A. print "Here's my data.\n" > OUTPUT
B. write OUTPUT "Here's my data.\n";
C. write OUTPUT ">Here's my data.\n";
D. print OUTPUT "Here's my data.\n";
Correct Answer: D
5. Consider the following program code:
%color = (sun => yellow, apple => red);
reverse(%color);
@colorKeys = sort(keys(%color));
foreach(@colorKeys)
{
print($color{$_} . );
}
What is the result of executing this program code?
A. The code will output the following:
apple sun
B. The code will output the following:
sun apple
C. The code will output the following:
red yellow
D. The code will output the following:
apple red sun yellow
Correct Answer: C