Робота з файлами в Pytohn

Quiz
•
Computers
•
10th Grade
•
Hard
Тетяна Сокол
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Функція open() ...
закриває файл
відкриває файл
зчитує усі дані з текстового файла
записує у файл символьний рядок
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 Wayground
11 questions
Информатика 10 сынып

Quiz
•
10th Grade
10 questions
Информатика

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

Quiz
•
9th - 10th Grade
9 questions
2 четверть СОР №2 информатика 10 класс

Quiz
•
10th Grade
10 questions
Работа с файлове

Quiz
•
9th - 12th Grade
12 questions
Компьютерная графика

Quiz
•
1st - 12th Grade
10 questions
Lêeruitbreiding

Quiz
•
10th Grade
10 questions
Manging Files and Folders

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

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th 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
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade