
Test8
Authored by Rares Hampi
Information Technology (IT)
9th - 12th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
30 questions
Form 4 - CSEC Information Technology Quiz
Quiz
•
10th Grade - University
35 questions
Memory Types and Functions Quiz
Quiz
•
12th Grade
25 questions
Kuis Tambahan Python
Quiz
•
9th - 12th Grade
25 questions
Understanding 1D Arrays in C
Quiz
•
12th Grade
25 questions
Konfigurasi Hotspot Mikrotik RB941
Quiz
•
12th Grade - University
25 questions
Quizizz SIOTICS #1
Quiz
•
10th Grade
34 questions
Python Basic (Grade9)
Quiz
•
9th Grade
35 questions
NILAI PRA PAT KELAS 11 B
Quiz
•
11th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
10 questions
Theme
Quiz
•
9th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade