
Alprog Pert 13

Quiz
•
Information Technology (IT)
•
University
•
Hard
Anjeng Ningrum
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dalam custom exception class berikut, baris mana yang menyimpan data ‘cheese’?
def init
self, pizza, cheese, message
pizzaerror.init
self.cheese = cheese
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jika kamu ingin membuat exception khusus seperti TooMuchCheeseError, kamu harus...
Turunkan dari BaseException dan tambahkan pass
Turunkan dari TypeError
Gunakan raise tanpa class
Turunkan dari Exception dan bisa tambahkan konstruktor
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa hasil dari kode berikut ?
ValueError
Kesalahan!
('Kesalahan!',)
None
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Di Python, exception adalah...
Objek dari class turunan BaseException
Blok program yang harus selalu ada
Variabel khusus Python
Fungsi pengendali loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output dari fungsi tanpa parameter yang dipanggil dengan argumen?
Tidak ada output
Error
Argumen diabaikan
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fungsi def data(nama, usia) dipanggil dengan data(usia=20, nama=\"Ani\"). Hasilnya?
Valid
Error
'Ani'
Tidak Terbaca
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hasil dari def f(x, y=3): return x + y, lalu f(4)?
Error
10
4
7
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python-Quiz1

Quiz
•
University
10 questions
Refresh Python

Quiz
•
University
10 questions
Quiz 4

Quiz
•
University
13 questions
Python Programming Quiz

Quiz
•
University
15 questions
Bài 26

Quiz
•
10th Grade - University
15 questions
Quiz Pemrograman Python

Quiz
•
10th Grade - University
15 questions
DSA (QUIZ 3) - Recursion

Quiz
•
University
10 questions
Operasi Input & Output C++

Quiz
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University