
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
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
20 questions
Pelatihan 2 - BE - Bootcamp DCI

Quiz
•
University
20 questions
Quiz Number 2 in CSS

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

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

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University