
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
10 questions
SO - expresii regulate & filtre

Quiz
•
University
13 questions
Coding With Python- Introductory Quiz

Quiz
•
University
15 questions
Python Challenge

Quiz
•
University
15 questions
Quiz Pemrograman Arduino

Quiz
•
10th Grade - University
8 questions
Jaringan Komputer dan Topologi

Quiz
•
11th Grade - University
15 questions
Bài 28

Quiz
•
10th Grade - University
10 questions
Quiz Meet 2 Mini SC Programing

Quiz
•
University
10 questions
SBD QUIZ#13

Quiz
•
University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

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

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade