CIW PERL FUNDAMENTALS 1D0-437 Question # 27 Topic 3 Discussion

CIW PERL FUNDAMENTALS 1D0-437 Question # 27 Topic 3 Discussion

1D0-437 Exam Topic 3 Question 27 Discussion:
Question #: 27
Topic #: 3

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


A.

t text

20


B.

t tex

19


C.

t text

19


D.

t tex

20


Get Premium 1D0-437 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.