1) Given a text file opened as file_in, which of the following will print the entire file? (Select ALL that apply.)What is the correct way to open the file file_in.txt for reading? a) open('file_in.txt', 'r') b) open('file_in.txt','w') c) open('file_in.txt','r+') d) open('file_in.txt','a') 2) Given the file dog_breeds.txt, which of the following is the correct way to open the file for reading as a text file? Select all that apply. a) open('dog_breeds.txt', 'w') b) open('dog_breeds.txt', 'r') c) open('dog_breeds.txt', 'rb') d) open('dog_breeds.txt') e) open('dog_breeds.txt', 'wb') 3) What error is returned by the following statement if the file does not exist? f=open.("a.txt") a) file not found error b) not found error c) no display d) found error 4) Fill in the blank in the following code of writing data in binary file for 1st. a) csv b) unpickle c) pickle d) load 5) which character will read 5 character from file a) f.read() b) f.read(5) c) f.reads(5)

ustvaril/-a

Lestvica vodilnih

Vizualni slog

Možnosti

Preklopi predlogo

Obnovi samodejno shranjeno: ?