
Test7
Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Hard
Rares Hampi
Used 6+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the default behavior of open('file.txt')?
Open for reading
Create new file
Open in binary mode
Append to file
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What happens if you try to read a file opened with 'w' mode?
Reads normally
Raises UnsupportedOperation
Returns empty string
Appends content
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following correctly opens a .csv file for reading with csv.reader?
open('data.csv')
open('data.csv', 'r')
csv.reader('data.csv')
csv.reader(open('data.csv'))
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In csv.reader, what is the type of each row returned in the loop?
List
Tuple
String
Dictionary
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What happens if csv.writer is used with a file not opened in text mode?
Works fine
Raises an error
Writes binary output
Automatically converts mode
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is required to draw a rectangle in pygame?
pygame.draw.rect(screen, color, rect)
pygame.rectangle(...)
pygame.render.rect(...)
ygame.screen.draw(...)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which function updates the screen in pygame?
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
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Distribute and Combine Like Terms
Quiz
•
7th - 9th Grade
12 questions
Graphing Inequalities on a Number Line
Quiz
•
9th Grade
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Cell Organelles
Quiz
•
9th Grade
20 questions
Cell Transport
Quiz
•
9th Grade