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
Similar Resources on Wayground
17 questions
Unity.Basics-3

Quiz
•
7th Grade - University
20 questions
Аддитивные технологии

Quiz
•
10th - 11th Grade
15 questions
Входной тест по информатике_1 курс

Quiz
•
9th - 10th Grade
15 questions
Промежуточная аттестация информатика 10 класс

Quiz
•
10th Grade
20 questions
Тест 2015 - НВО

Quiz
•
9th - 10th Grade
15 questions
MIT APP Inventor

Quiz
•
9th - 12th Grade
20 questions
lilja_mak

Quiz
•
5th - 11th Grade
18 questions
Basic Level IT

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade