
FYCS Python II quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
shubhangi wankhede
Used 1+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which function is used to open a file in Python?
openfile()
open()
fileopen()
readfile()
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which file mode is used to append data to an existing file?
w
r
a
x
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which method is used to read a file line by line?
readline()
readlines()
readall()
readfile()
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is an exception in Python?
A syntax error in the code
A type of function call
An event that disrupts the normal flow of a program
A keyword in Python
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which keyword is used to handle exceptions in Python?
catch
try
handle
trap
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will happen if an exception is not handled in Python?
The program will continue execution
The program will terminate with an error message
The program will restart automatically
The program will ignore the exception
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which keyword is used to catch an exception in Python?
try
catch
except
handle
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
25 questions
DEL Test
Quiz
•
University
30 questions
C-Programming
Quiz
•
University
25 questions
UH BAB II
Quiz
•
9th Grade - University
26 questions
Typescript class 02
Quiz
•
University
25 questions
Information Technology Basic
Quiz
•
University
25 questions
Sains Data- Middle Test
Quiz
•
University
29 questions
2DO PARCIAL DB
Quiz
•
University
25 questions
Algoritma dan Pemrograman
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
