Writing to Files
Interactive Video
•
Computers
•
9th - 10th Grade
•
Hard
Wayground Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you try to create a file with mode 'X' and the file already exists?
An error is returned.
The file is overwritten.
The file is ignored.
The file is appended.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to write a list of items to a file?
append
readlines
writelines
write
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Before using the write method, what must be done to non-string data?
Convert it to a list
Convert it to a string
Convert it to an integer
Convert it to a float
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the challenge, what is the first step to process the paragraph?
Count the vowels
Save it in a text file
Count the consonants
Append statistics to the file
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the final task in the reading and writing challenge?
Count the number of words
Append the statistics to the file
Delete the original paragraph
Write the paragraph to a new file
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
18 questions
Artificial Intelligence and Machine Learning Quiz
Quiz
•
9th Grade
35 questions
Computer Terminology Exercise #1 ( Multiple Choice)
Quiz
•
9th Grade
20 questions
Computer Components Exercise #4 - CTEA
Quiz
•
9th - 12th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade