nerdexam
CIW

1D0-437 · Question #24

Consider that a file named test.txt contains this line of text: $file = "test.txt"; open (OUT, "<$file") || (die "cannot open $file: $!"); seek(OUT, 15,0); read(OUT,$buffer, 5); print $buffer. "\n"…

The correct answer is D. ttex 20. See the full explanation below for the reasoning.

Question

Consider that a file named test.txt contains this line of text:

$file = "test.txt"; open (OUT, "<$file") || (die "cannot open $file: $!"); seek(OUT, 15,0); read(OUT,$buffer, 5); print $buffer. "\n"; print tell(OUT); One line of test text, What is the output of the following lines of code?

Options

  • Attext 20
  • Bttex 19
  • Cttext 19
  • Dttex 20

How the community answered

(61 responses)
  • A
    3% (2)
  • B
    7% (4)
  • C
    10% (6)
  • D
    80% (49)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice