
Python Runtime Errors and Exception Handling Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Tri Muliawati
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang akan dilakukan Python apabila terdapat error atau exception?
Python akan memperbaiki bagian kode yang menghasilkan error secara otomatis
Python akan mengabaikan Error dan tetap menjalankan program
Python akan memunculkan Error dan menghentikan program
Python akan memunculkan Error dan tetap menjalankan program
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Untuk mengantisipasi kemungkinan munculnya error, maka bagian kode yang berpotensi menghasilkan error perlu diletakkan di dalam block apa?
catch
handle
raise
try
3.
MULTIPLE SELECT QUESTION
30 sec • 2 pts
Manakah diantara pernyataan berikut yang benar terkait exception handling.
Block except diletakkan setelah block try
1 block try dapat memiliki lebih dari 1 block except
Block except tanpa nama (unnamed except) boleh diletakkan sebelum block except yang memiliki nama (named except)
Setiap block except perlu diberi nama secara explisit
4.
MULTIPLE SELECT QUESTION
30 sec • 2 pts
Manakah diantara nama berikut yang merupakan built-in exception pada Python?
FileNotFoundError
ValueError
TypeError
KeyError
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa kegunaan dari keyword "assert" pada Python?
Untuk menangani error
Untuk mendefinisikan fungsi
Untuk mengevaluasi sebuah ekspresi dan menampilkan exception / error apabila ekspresi tidak terpenuhi (bernilai False)
Untuk mengevaluasi sebuah ekspresi dan menampilkan exception / error apabila ekspresi terpenuhi (bernilai True)
6.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Apa luaran dari scipt berikut?
'Ada kesalahan penerapan aritmatika di sini'
'Bilangan tidak boleh dibagi dengan 0'
'0'
Program tidak bisa dijalankan dan memunculkan error
7.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Apa luaran dari scipt berikut?
'Nilai total adalah 1.3'
'Nilai total adalah 1.3
Key berhasil ditemukan'
'Key tidak ditemukan'
'Key berhasil ditemukan'
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
10 questions
Scratch (28th March)
Quiz
•
KG - University
10 questions
Software Testing
Quiz
•
University
10 questions
Ke-Al Azhar 8 an
Quiz
•
7th Grade - University
10 questions
CCLUB TANIŞMA
Quiz
•
University
15 questions
quiz pertemuan 2 asik ddp
Quiz
•
University
15 questions
Computer Science Quiz
Quiz
•
University
10 questions
kelas 3C
Quiz
•
3rd Grade - University
10 questions
Node.js
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University
