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
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
แบบทดสอบ
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม