Apa yang dimaksud dengan class dalam Python?
PreTest Method

Quiz
•
Computers
•
12th Grade
•
Medium
Mona Marantika
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Sebuah fungsi yang digunakan untuk mengembalikan nilai.
Sebuah blueprint atau cetakan untuk membuat objek.
Sebuah library bawaan Python.
Sebuah tipe data primitif seperti integer atau string.
2.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Manakah dari berikut ini yang merupakan contoh deklarasi class yang benar dalam Python?
class MyClass:
def MyClass:
object MyClass:
new class MyClass:
3.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Apa yang dilakukan oleh method __init__ dalam sebuah class?
Menghapus objek yang sudah dibuat.
Menginisialisasi atau mengatur nilai awal atribut objek.
Menghasilkan output ke konsol.
Mengembalikan nilai dari objek.
4.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Manakah dari berikut ini yang merupakan contoh pembuatan objek dari class Mahasiswa?
obj = Mahasiswa()
obj = new Mahasiswa()
obj = class Mahasiswa()
obj = Mahasiswa.create()
5.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Apa output dari kode berikut?
merk
Toyota
self
Error
6.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Apa yang dimaksud dengan method dalam Python?
Sebuah variabel yang menyimpan data dalam class.
Sebuah fungsi yang didefinisikan di dalam class dan beroperasi pada objek.
Sebuah tipe data yang digunakan untuk menyimpan angka.
Sebuah library bawaan Python untuk manipulasi string.
7.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
Manakah dari berikut ini yang merupakan contoh deklarasi method dalam class?
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
JARINGAN KOMPUTER

Quiz
•
12th Grade
10 questions
Dasar-Dasar Algoritma

Quiz
•
10th - 12th Grade
10 questions
Evaluasi dan Refleksi - 5

Quiz
•
12th Grade
10 questions
Objects & Classes

Quiz
•
11th - 12th Grade
10 questions
การเขียนโปรแกรมภาษาจาวา บทที่1

Quiz
•
12th Grade
15 questions
Computer Science - Python

Quiz
•
9th - 12th Grade
10 questions
Dictionary in Python

Quiz
•
11th - 12th Grade
15 questions
MVC-PHP

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade
45 questions
Week 3.5 Review: Set 1

Quiz
•
9th - 12th Grade