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
שתף
שתף
שתף
על ידי
Vansh6793
עריכת תוכן
הדפסה
הטבעה
עוד
הקצאות
לוח תוצאות מובילות
הצג עוד
הצג פחות
לוח התוצאות הזה הוא כרגע פרטי. לחץ
שתף
כדי להפוך אותו לציבורי.
לוח תוצאות זה הפך ללא זמין על-ידי בעל המשאב.
לוח תוצאות זה אינו זמין מכיוון שהאפשרויות שלך שונות מאשר של בעל המשאב.
אפשרויות חזרה
חידון
היא תבנית פתוחה. זה לא יוצר ציונים עבור לוח התוצאות.
נדרשת כניסה
סגנון חזותי
גופנים
נדרש מנוי
אפשרויות
החלף תבנית
הצג הכל
תבניות נוספות יופיעו במהלך המשחק.
תוצאות פתוחות
העתק קישור
קוד QR
מחיקה
האם לשחזר את הנתונים שנשמרו באופן אוטומטי:
?