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)- A3% (2)
- B7% (4)
- C10% (6)
- D80% (49)
Community Discussion
No community discussion yet for this question.