Q2Multiple correct3 Marks31 Aug 2025
Consider the following snippet of code: select all that apply.
```
filename = "test.txt"
with open(filename, "w") as f:
f.write("\n".join(["Line{}".format(i) for i in range(1, 11)]))
with open(filename, "r") as f:
f.readline()
f.readline()
print(f.readline())
print(f.read(5))
f.seek(0)
print(f.read(5))
f.readline()
print(f.read(5))
```