
Test8
Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Practice Problem
•
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
Already have an account?
Similar Resources on Wayground
33 questions
Soal Jaringan Komputer 12
Quiz
•
12th Grade
30 questions
Post Test Tema 1 - Mengenal Laravel
Quiz
•
11th Grade
35 questions
Introductory GIS Quiz
Quiz
•
12th Grade
25 questions
Software Testing in Java
Quiz
•
1st Grade - University
29 questions
La letra chica que nadie lee (Derechos de autor)
Quiz
•
11th Grade
31 questions
Basic Linux CLI Commands
Quiz
•
11th Grade - University
35 questions
SAS GENAP KELAS XI TP 2024/2025
Quiz
•
11th Grade
35 questions
XI 160425 Quiz Algoritma dan Pemrograman C
Quiz
•
10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
10 questions
Exploring Christmas Traditions Through Cartoons
Interactive video
•
6th - 10th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
