Zipping Files With Python Quiz
We offer you a brighter future with FREE online courses - Start Now!!
Quiz Summary
0 of 10 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 10 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 10
1. Question
The files and directories in a zip file are called ____.
CorrectIncorrect -
Question 2 of 10
2. Question
What module is generally used for working with zip files in Python?
CorrectIncorrect -
Question 3 of 10
3. Question
What function is used to view all contents of a zip file?
CorrectIncorrect -
Question 4 of 10
4. Question
What function is used to set a password to a zip file?
CorrectIncorrect -
Question 5 of 10
5. Question
_____ attribute is used to view the comment of a zip file.
CorrectIncorrect -
Question 6 of 10
6. Question
What function is used to extract a single from a zip file?
CorrectIncorrect -
Question 7 of 10
7. Question
What function is used to extract all files from a zip file?
CorrectIncorrect -
Question 8 of 10
8. Question
from zipfile import ZipFile
file = “students.zip”
with ZipFile(file, ‘r’) as zip:
print(zip.namelist())
CorrectIncorrect -
Question 9 of 10
9. Question
import zipfile
print(zipfile.is_zipfile(“file_zip.txt”))
CorrectIncorrect -
Question 10 of 10
10. Question
from zipfile import ZipFile
with ZipFile(“Students.zip”, ‘a’) as zip:
zip.write(‘NewStudent.txt’)
CorrectIncorrect