
Python-Week7
Authored by Yahini Prabha Murugesan
Other
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a file with the specified name already exists when the file is opened and the file is opened in 'w' mode, then an alert will appear on the screen.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The ZeroDivisionError exception is raised when the program attempts to perform the calculation x/y if y = 0.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following describes what happens when a piece of data is written to a file?
The data is copied from a variable in RAM to a file.
The data is copied from the program to a file.
The data is copied from a file object to a file.
The data is copied from a variable in the program to a file.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of file access jumps directly to a piece of data in the file without having to read all the data that comes before it?
numbered
sequential
text
random
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which mode specifier will open a file but not let you change the file or write to it?
r
w
a
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method could be used to strip specific characters from the end of a string?
strip
lstrip
rstrip
remove
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement can be used to handle some of the runtime errors in a program?
an exception handler statement
a try statement
a try/except statement
an exception statement
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
20 questions
Online quiz - GHOT2033
Quiz
•
University
20 questions
Pangkat Minorya
Quiz
•
University
21 questions
komputery
Quiz
•
5th Grade - University
20 questions
MIS Chapter 4
Quiz
•
University
20 questions
NMMS MAT 7காலம் சார்ந்த கணக்குகள்
Quiz
•
University
20 questions
Repaso general - Técnicas Auditoría
Quiz
•
University
20 questions
Tipos de muestreo
Quiz
•
University
20 questions
English Diagnostic 2B
Quiz
•
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 Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University