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
1 questions
coin farming

Flashcard
•
KG
9 questions
Spanish Greetings

Flashcard
•
KG - University
9 questions
TSSR - S04 - Bash

Flashcard
•
University
8 questions
Linux File Permissions Flashcard

Flashcard
•
University
4 questions
1 My friends

Flashcard
•
University - Professi...
8 questions
Flashcard on Intro to Recon & Google Dorking

Flashcard
•
12th Grade
9 questions
Spanish Greetings and goodbyes

Flashcard
•
KG - Professional Dev...
11 questions
Java Boolean Statements

Flashcard
•
11th Grade
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
Video Games

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

Lesson
•
9th - 12th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade