flashcard - 7(exceptions and file handling)

Flashcard
•
Other
•
12th Grade - University
•
Hard
Wayground Content
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
output?
Back
hi An exception occurred
2.
FLASHCARD QUESTION
Front
What is the output? Options: Something went wrong, Finally print this, Something went wrong, Nothing went wrong, Finally print this, Finally print this
Back
Something went wrong
Finally print this
3.
FLASHCARD QUESTION
Front
What is the output? Options: 50, 0, error
Back
error
4.
FLASHCARD QUESTION
Front
What is the output when attempting to divide by 0?
Back
numbers can not divide by 0
5.
FLASHCARD QUESTION
Front
What is the output when dividing numbers by 0?
Back
numbers can not divide by 0, no errors
6.
FLASHCARD QUESTION
Front
What is the output? Options: hi, hi bye hi bye, bye bye hi bye
Back
bye bye hi bye
7.
FLASHCARD QUESTION
Front
we want to write something in test.txt file. what is the correct syntax? Options: f = open("test.txt", "w"), f = open("test.txt"), f = open("test.txt", "r")
Back
f = open("test.txt", "w")
8.
FLASHCARD QUESTION
Front
how to import python math modules?
Back
import math
9.
FLASHCARD QUESTION
Front
What is the output? Options: Lorum Ipsum, demofile.txt, Something went wrong when writing to the file.
Back
Something went wrong when writing to the file.
Similar Resources on Wayground
10 questions
FBS ROOM SERVICE

Flashcard
•
11th Grade - University
10 questions
Video games

Flashcard
•
University
9 questions
Heyyy

Flashcard
•
KG
9 questions
Python Programming Basics Flashcard

Flashcard
•
12th Grade
9 questions
Python Programming Basics Flashcard

Flashcard
•
12th Grade
10 questions
Greetings in Spanish

Flashcard
•
KG - University
6 questions
Everyday Conversations

Flashcard
•
KG - University
10 questions
linux ubuntu

Flashcard
•
KG
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Other
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University