
Test8
Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Hard
Rares Hampi
Used 4+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will f.read() return after reaching EOF in a .txt file?
Raises EOFError
Returns empty string
Returns None
Loops to the beginning
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What happens if you use f.write("data") on a file opened with "r" mode?
Writes normally
Truncates the file first
Raises io.UnsupportedOperation
Returns False
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is true about with open(...) as f: block?
It closes the file only on success
File stays open after the block ends
It guarantees file closure even on exceptions
Cannot be used with binary files
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does f.readlines() return by default?
A single string
List of lines with trailing newline characters
List of stripped strings
Generator
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What’s the result of calling f.write("abc\n", "def\n")?
Writes both lines
Writes only the first
SyntaxError
TypeError
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In CSV, what is the purpose of newline="" in open()?
Prevents empty columns
Combines rows
Prevents extra blank lines (Windows)
Forces UTF-8
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following uses keys to access values directly?
csv.reader
csv.writer
csv.DictReader
csv.reader with delimiter
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
25 questions
Kuis Tambahan Python
Quiz
•
9th - 12th Grade
25 questions
Konfigurasi Hotspot Mikrotik RB941
Quiz
•
12th Grade - University
25 questions
Quizizz SIOTICS #1
Quiz
•
10th Grade
30 questions
UJIAN MID SMT GENAP INFORMATIKA KLS X TP. 2024/2025
Quiz
•
10th Grade
34 questions
Python Basic (Grade9)
Quiz
•
9th Grade
35 questions
NILAI PRA PAT KELAS 11 B
Quiz
•
11th Grade - University
30 questions
Form 4 - CSEC Information Technology Quiz
Quiz
•
10th Grade - University
35 questions
Memory Types and Functions Quiz
Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
11 questions
Halloween Trivia #2
Quiz
•
12th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
