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
Apa yang dimaksud dengan class dalam Python?
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 Wayground
10 questions
Tinkercad ม.6

Quiz
•
9th - 12th Grade
12 questions
React Native e Componentes básicos

Quiz
•
12th Grade
8 questions
JS Talks, Quiz #4

Quiz
•
1st - 12th Grade
10 questions
C# Programming 2

Quiz
•
12th Grade
10 questions
Recursion Practice, Recursion Practice, Recursion Practice...

Quiz
•
10th Grade - University
10 questions
Latihan Class Library

Quiz
•
9th - 12th Grade
9 questions
quis lat soal

Quiz
•
9th - 12th Grade
15 questions
Topic 3 & 4 Practice - ArrayList and String Methods

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade