answer plz | Sololearn: Learn to code for FREE!

+5

answer plz

How many characters would be in each line printed by this code, if one character is one byte? file = open("filename.txt", "r") for i in range(21): print(file.read(4)) file.close()

4/29/2020 2:59:17 PM

Arpita Chakraborty

20 Answers

New Answer

+5

the answer is 4

+4

the correct answer is 2, 4/2= 2

+2

Run it and find out.

+2

+1

Correct Answer is 4

+1

answer is 2 . one character is of two bytes then read argument have (4) then 4/2 = 2

+1

+1

the answer is 2

0

Wasn't that difficult you could just run it and know the answer

0

0

The answer is 4

0

answer is 4

0

0

Answer is "2"

0

Answer Is 4.

-1

-1

The answer is 4 Although the statement 'print(file.read(4))' is executing 21 iterations, each iteration It will read the same 4 characters.

-1

-2

Run it to find out (:

-4

I believe 84 character