
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
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Pelatihan 2 - BE - Bootcamp DCI

Quiz
•
University
20 questions
Quiz Number 2 in CSS

Quiz
•
12th Grade - University
25 questions
Pre-Assessment Test: Python Basics

Quiz
•
University
30 questions
OODP FT1 Assessment Questions

Quiz
•
University
20 questions
SnT_Module-1_06/07/2020

Quiz
•
University
24 questions
python

Quiz
•
University
20 questions
Food Presentation and Buffet Service

Quiz
•
University
20 questions
POST TEST MODULE 7

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University