Функція open() ...
Робота з файлами в Pytohn

Quiz
•
Computers
•
10th Grade
•
Hard
Тетяна Сокол
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
закриває файл
відкриває файл
зчитує усі дані з текстового файла
записує у файл символьний рядок
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Яка функція записує у файл послідовність символьних рядків?
write()
writelines()
read()
readline()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
В якому з поданих режимів файл відкривається для читання?
r (Read)
w (Write)
a (Append)
b (Binary)
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
З поданих розширень файлів оберіть ті, які відносяться до текстових файлів:
html
jpeg
avi
txt
xlsx
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Оберіть всі можливі режими відкриття файлу:
s (Speak)
a (Append)
c (Clean)
r (Read)
w (Write)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
i = open('input.txt','r')
o = open('output.txt','w')
З якого файлу програма зчитує вхідні дані?
i
output.txt
input.txt
o
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
i = open('input.txt','r')
o = open('output.txt','w')
В який файл програма записує вихідні дані (результат виконання програми)?
input.txt
output.txt
і
о
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
cmd and terminal

Quiz
•
7th Grade - University
10 questions
Создание и распаковка архивов

Quiz
•
1st - 10th Grade
6 questions
Задание 7 + ПОВТОРЕНИЕ ОГЭ ИНФА

Quiz
•
9th - 12th Grade
12 questions
Експорт документів

Quiz
•
7th Grade - University
10 questions
Масиви та рядкові величини

Quiz
•
9th - 10th Grade
12 questions
1.5 і 1.6 Зберігання даних в Інтернеті. Онлайн-середовища

Quiz
•
1st - 12th Grade
8 questions
Растровий графічний редактор як інструмент дизайну. GIMP

Quiz
•
10th Grade
12 questions
Scratch - віддалене навчання - 5 клас Т1

Quiz
•
1st - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University