
Quiz 6
Quiz
•
Computers
•
Professional Development
•
Hard
Moirangthem Sonia
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 10 pts
Which of the following best describes a text file?
Stores human-readable characters using encodings like ASCII or UTF-8
Stores only images and videos
Contains only binary machine instructions
Cannot be edited with text editors
2.
MULTIPLE CHOICE QUESTION
5 mins • 10 pts
Which Python module is primarily used for file and directory operations?
sys
os
random
shutil
3.
MULTIPLE CHOICE QUESTION
5 mins • 10 pts
What exception is raised when a file to be opened does not exist?
IOError
KeyError
FileNotFoundError
ValueError
4.
MULTIPLE CHOICE QUESTION
5 mins • 10 pts
What is the main advantage of using the "with" keyword when opening files?
Makes the program faster
Automatically closes the file after operations
Allows writing binary data only
Prevents the need for try-except blocks
5.
MULTIPLE CHOICE QUESTION
5 mins • 10 pts
Which mode should be used to append data to a file without deleting its existing content?
"r"
"w"
"a"
"rb"
6.
MULTIPLE CHOICE QUESTION
5 mins • 10 pts
Which method reads the entire content of a file as a single string?
readline()
read()
readlines()
seek()
Answer explanation
read() Reads the whole file content as one single string.
readline() Reads one line at a time (up to a newline \n).
readlines() Reads all lines into a list, where each line is a separate string.
7.
MULTIPLE CHOICE QUESTION
5 mins • 10 pts
he method os.getcwd() in Python is used to:
Delete a directory
Change file ownership
Return the current working directory
Rename a file
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
20 questions
the truth table - boolean logic (python - lpthw)
Quiz
•
Professional Development
20 questions
CPA JYSS 2018 Prelims Paper 1
Quiz
•
7th Grade - Professio...
20 questions
Chapter 3 : Flowchart & Pseudocode
Quiz
•
Professional Development
20 questions
Ulangan Administrasi sistem jaringan
Quiz
•
University - Professi...
20 questions
PRUEBA DEL RA6
Quiz
•
Professional Development
25 questions
7 ÔT Giữa Hk 1 tin học 7 23 - 24
Quiz
•
Professional Development
25 questions
Chủ đề: Ms powerpoint
Quiz
•
2nd Grade - Professio...
20 questions
Teaching Strategy
Quiz
•
Professional Development
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 Computers
10 questions
Identifying Phishing Emails Quiz
Quiz
•
Professional Development
14 questions
2019 Logos
Quiz
•
Professional Development
7 questions
Tone and Mood Quick Check
Quiz
•
Professional Development
32 questions
Abbreviations and Equivalents
Lesson
•
6th Grade - Professio...
5 questions
11.4.25 Student Engagement & Discourse
Lesson
•
Professional Development
