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)
0%
cs activity
Delen
Delen
Delen
door
Vansh6793
Inhoud Bewerken
Afdrukken
Embedden
Meer
Toewijzingen
Scorebord
Meer weergeven
Minder weergeven
Dit scoreboard is momenteel privé. Klik op
Delen
om het publiek te maken.
Dit scoreboard is uitgeschakeld door de eigenaar.
Dit scoreboard is uitgeschakeld omdat uw opties anders zijn dan die van de eigenaar.
Opties Herstellen
Quiz
is een open template. Het genereert geen scores voor een scoreboard.
Inloggen vereist
Visuele stijl
Lettertypen
Abonnement vereist
Opties
Template wisselen
Alles weergeven
Er zullen meer templates verschijnen terwijl je de activiteit gebruikt.
Open resultaten
Kopieer link
QR-code
Verwijderen
Automatisch opgeslagen activiteit "
" herstellen?