quiz - 7(exceptions and file handling)

Quiz
•
Other
•
12th Grade - University
•
Medium
sasika roledenez
Used 20+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
output?
hi
bye
hi
An exception occurred
hi
bye
An exception occurred
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
output?
Something went wrong
Finally print this
Something went wrong
Nothing went wrong
Finally print this
Finally print this
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
output?
50
0
error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
output?
50
numbers can not divide by 0
error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
output?
error
numbers can not divide by 0
numbers can not divide by 0
no errors
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
output?
hi
hi
bye
hi
bye
bye
bye
hi
bye
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
we want to write something in test.txt file. what is the correct syntax?
f = open("test.txt", "w")
f = open("test.txt")
f = open("test.txt", "r")
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
how to import python math modules?
form import math
import math
import from math
from math
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
output?
Lorum Ipsum
demofile.txt
Something went wrong when writing to the file.
Similar Resources on Wayground
10 questions
python set 1

Quiz
•
University
5 questions
Week 3

Quiz
•
University
10 questions
Multimedia Elements Quiz

Quiz
•
University
10 questions
PHD640-Q1

Quiz
•
University
9 questions
Get To Know Communication Awards 2025

Quiz
•
University
11 questions
K-POP QUIZ!

Quiz
•
4th Grade - University
8 questions
Regular Course 2021 Full Stack_M1 L1

Quiz
•
7th - 12th Grade
14 questions
Intro to Python Programming Quiz 9D

Quiz
•
1st 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