Search Header Logo

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

Authored by Тетяна Сокол

Computers

10th Grade

Used 1+ times

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

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

і

о

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?