
OOP DASAR pada PHP - Property dan Method
Interactive Video
•
Other
•
10th Grade
•
Medium
Amelya Anggraeni
Used 1+ times
FREE Resource
9 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 10 pts
Apa yang dimaksud dengan "Property" dalam konteks pemrograman berorientasi objek?
Evaluate responses using AI:
OFF
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Bagaimana cara mendeklarasikan sebuah "Property" dalam PHP?
Menggunakan kata kunci function diikuti nama variabel.
Sama seperti variabel biasa, tetapi diawali dengan visibility seperti public.
Hanya dengan menulis nama variabel tanpa visibility.
Menggunakan kata kunci method diikuti nama variabel.
3.
OPEN ENDED QUESTION
3 mins • 10 pts
Apa fungsi utama dari "Method" dalam pemrograman berorientasi objek?
Evaluate responses using AI:
OFF
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Jika kita membuat kelas Produk untuk menjual komik dan game, properti apa saja yang kemungkinan besar akan dimiliki oleh kelas tersebut?
tambahKecepatan, kurangiKecepatan, gantiTransmisi.
nama, merk, warna.
judul, penulis, penerbit, harga.
belokKiri, belokKanan, jumlahPenumpang.
5.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Apa nilai awal properti 'judul', 'penulis', 'penerbit', dan 'harga' saat objek 'Produk' baru dibuat tanpa nilai default yang ditentukan?
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Bagaimana cara menetapkan nilai default untuk properti langsung di dalam definisi kelas?
Menggunakan konstruktor
Menetapkan nilai langsung setelah deklarasi properti
Menggunakan metode setter
Menetapkan nilai saat instansiasi objek
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Bagaimana cara mengubah nilai properti 'judul' dari objek `$produk1` menjadi "Naruto" setelah objek tersebut diinstansiasi?
`$produk1->judul = "Naruto";`
`Produk::judul = "Naruto";`
`setJudul($produk1, "Naruto");`
`$produk1.judul = "Naruto";`
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
Video Materi SPLDV
Interactive video
•
9th Grade
7 questions
Mencari Ukuran Pemusatan Data Kelas 10
Interactive video
•
10th Grade
6 questions
Kuis Video Jenis-Jenis Alat Ukur
Interactive video
•
10th Grade
10 questions
Materi IPAS (Fisika) tentang Gerak
Interactive video
•
10th Grade
2 questions
CLEAN : Israel's Netanyahu tells PM Bennett to 'go home' at right-wing rally
Interactive video
•
9th - 10th Grade
6 questions
globalisasi dan modernisasi
Interactive video
•
9th Grade
6 questions
PROCEDURE TEXS
Interactive video
•
9th Grade
11 questions
Tugas Lembaga Sosial Kelas 10
Interactive video
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Other
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
23 questions
TSI Math Vocabulary
Quiz
•
10th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
10 questions
Plotting Points on a Coordinate Plane: Quadrant 1 Essentials
Interactive video
•
6th - 10th Grade
10 questions
Exploring Abiotic and Biotic Factors in Ecosystems
Interactive video
•
6th - 10th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade