
Uso de Arquivos em Python
Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
Luciano Topolniak
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Qual é o modo padrão de abertura de arquivos em Python usando a função `open()`?
'w'
'r'
'a'
'x'
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
O que acontece se você tentar abrir um arquivo inexistente no modo 'r'?
O arquivo é criado automaticamente.
Um erro do tipo FileNotFoundError é lançado.
O arquivo é aberto em branco.
O Python ignora a operação.
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Qual é a principal vantagem de usar o bloco `with` ao trabalhar com arquivos em Python?
Permite abrir vários arquivos ao mesmo tempo.
Garante o fechamento automático do arquivo após o uso.
Torna o código mais lento.
Permite modificar arquivos somente para leitura.
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Qual dos modos abaixo permite adicionar conteúdo ao final de um arquivo sem apagar o conteúdo existente?
'w'
'r'
'a'
'x'
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Após abrir um arquivo com `open('arquivo.txt', 'w')`, o que acontece com o conteúdo anterior do arquivo?
O conteúdo anterior é mantido.
O conteúdo anterior é apagado.
O arquivo é renomeado.
O arquivo é movido para outra pasta.
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Qual comando é utilizado para fechar um arquivo manualmente em Python?
file.close()
file.end()
file.stop()
file.quit()
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
O que acontece se você tentar ler um arquivo já fechado?
O Python lê normalmente.
Um erro do tipo ValueError é lançado.
O arquivo é reaberto automaticamente.
O conteúdo é retornado como uma string vazia.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
14 questions
Кодирование информации
Quiz
•
10th Grade
15 questions
Alfabetização Digital
Quiz
•
9th - 12th Grade
10 questions
Cuestionario sobre Inteligencia Artificial
Quiz
•
10th Grade
14 questions
SP247
Quiz
•
6th Grade - University
10 questions
JavaScript: Aula 01
Quiz
•
9th - 12th Grade
15 questions
Quiz sobre Windows
Quiz
•
1st Grade - University
15 questions
informatika 10-sinf
Quiz
•
10th Grade
15 questions
Test grila - Formatarea tabelelor
Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
7 questions
Combining & Revising Sentences- EOC English I Crunchtime
Quiz
•
9th - 10th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
