Python (Пайтон) работа с файлами
Quiz
•
Computers
•
10th Grade
•
Hard
Itachi Uchiha
Used 72+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как открыть файл в Python?
Используйте функцию open() в Python для открытия файла.
Используйте функцию close() в Python для открытия файла.
Используйте функцию read() в Python для открытия файла.
Используйте функцию write() в Python для открытия файла.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какая функция используется для записи в файл?
read
write
save
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как прочитать содержимое файла в Python?
write() и close()
readline() и close()
open() и read()
append() и read()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как закрыть файл после работы с ним?
close()
terminate()
end()
finish()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что делает функция os.remove()?
Удаляет файл
Изменяет файловую систему
Создает новый файл
Переименовывает файл
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как создать новый файл в Python?
read('filename.txt', 'w')
open('filename.txt', 'w')
write('filename.txt', 'w')
create('filename.txt', 'w')
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как проверить существование файла в Python?
os.path.exists('путь_к_файлу')
check.file('путь_к_файлу')
file.exists('путь_к_файлу')
os.file.exists('путь_к_файлу')
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Массивы, зачет №1
Quiz
•
10th Grade
20 questions
Ôn tập học kỳ I
Quiz
•
9th - 12th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
16 questions
Python Basics
Quiz
•
KG - University
15 questions
Python Basics
Quiz
•
KG - University
20 questions
Python Recap
Quiz
•
7th Grade - University
15 questions
Ôn tập KTGK. Bài 20. Câu lệnh lặp For
Quiz
•
10th Grade
22 questions
аппаратное обеспечение
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Six Weeks Test 2 Review
Lesson
•
9th - 12th Grade
12 questions
Overview of Mexico Part 1
Lesson
•
9th - 12th Grade
10 questions
Exploring Computer Hardware and Software Components
Interactive video
•
6th - 10th Grade
