Free 1D0-437 Exam Braindumps (page: 5)

Page 4 of 25

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);

  1. t text
  2. ttex
  3. t text
  4. ttex

Answer(s): D



Consider the following code:
%hashA = ("alpha", "beta", "gamma", "alpha");
%hashA = reverse(%hashA);
print $hashA{"alpha"};
What is the result of executing this code?

  1. The code outputs the following:
    Alpha
  2. The code outputs the following:
    Beta
  3. The code outputs the following:
    Gamma
  4. The code fails at line 3.

Answer(s): C



Consider the following command perl1 runme.pl arg1 arg2 arg3 Given this command issued on the command line, what is the value of $#ARGV?

  1. 0
  2. 1
  3. 2
  4. 3

Answer(s): C



Consider the following code:
$_ = "New York";
@array2 = split(//);
What is the value of $array2[0] after the code is executed?

  1. ""
  2. "N e w"
  3. "NewYork"
  4. "N"

Answer(s): D






Post your Comments and Discuss CIW 1D0-437 exam with other Community members:

1D0-437 Discussions & Posts