Search Header Logo

Python. Турнир 2

Authored by Кристина Крушинская

Computers

Professional Development

Used 5+ times

Python. Турнир 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Чтобы показать содержимое папки, мы используем...

(первым идет команда для Windows, затем для Mac / Linux)

cd . cd .

dir ls

rm rmdir

del rm

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Чтобы перейти на два уровня вверх, мы используем

cd ./../

cd ../../

cd .././

cd .…

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Для создания папки мы используем

mkdir

dir

newdir

create

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Какая строка перенаправит результат в файл?

dir // folders.txt

ls // folders.txt

dir -d folders.txt

ls -d folders.txt

dir > folders.txt

ls > folders.txt

dir -file folders.txt ls -file folders.txt

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Какого режима открытия файла не существует?

r

w

a

z

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Какой из вариантов откроет файл для чтения в текстовом режиме?

open('dogs.txt', 'rb')

open('dogs.txt')

open('dogs.txt', “a”)

open('dogs.txt', “read”)

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

У вас есть следующая структура файлов и папок. Вы находитесь в файле main.py. Какая строка откроет файл lions.txt?

../animals/lions.txt

animals/feline/lions.txt

feline/animals/lions.txt

./feline/lions.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?