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.

Python-Week7

Quiz
•
Other
•
University
•
Easy

Yahini Prabha Murugesan
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
round 2

Quiz
•
University
20 questions
POST TEST MODULE 7

Quiz
•
University
25 questions
EMPOWERMENT TECHNOLOGY

Quiz
•
KG - University
22 questions
3rd SXM ANNIV

Quiz
•
University
20 questions
Hackethon Quiz

Quiz
•
University
20 questions
SPB Marketing Edition

Quiz
•
University
25 questions
C Programming

Quiz
•
12th Grade - University
20 questions
Quiz for E415 batch

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade