
Alprog Pert 13
Authored by Anjeng Ningrum
Information Technology (IT)
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
MongoDB Concepts 2
Quiz
•
University
15 questions
Pemahaman Sistem Komputer Kelas 8
Quiz
•
8th Grade - University
12 questions
Графічний інтерфейс Python
Quiz
•
12th Grade - University
15 questions
Kuis Kecerdasan Buatan dan Gemini
Quiz
•
12th Grade - University
10 questions
Praktikum Pertemuan 5
Quiz
•
University
10 questions
Tes materi Implementasi Proses Bisnis TJKT
Quiz
•
10th Grade - University
10 questions
FO Dasar - Quiz
Quiz
•
11th Grade - University
10 questions
SOAL MID SEMESTER INFORMATIKA
Quiz
•
6th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University