flashcard - 7(exceptions and file handling)

Flashcard
•
Other
•
12th Grade - University
•
Hard
Quizizz 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
Informática básica

Flashcard
•
University
7 questions
Module2Flashcard

Flashcard
•
University
11 questions
Are You Dumb Bruh

Flashcard
•
KG - University
7 questions
Email Writing

Flashcard
•
University
10 questions
Video games

Flashcard
•
University
10 questions
4th G Vocab/Phrase Flashcard 2

Flashcard
•
KG - University
12 questions
FCE- Complete sentences - VERB + NOUN

Flashcard
•
12th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Other
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University