PHP OOP 1 (Class s.d. Constructor)
Quiz
•
Information Technology (IT)
•
11th Grade
•
Practice Problem
•
Medium
Muhammad Faishaluddin
Used 11+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 5 pts
Apa alasan utama menggunakan pendekatan OOP dalam pengembangan perangkat lunak?
Karena lebih singkat penulisannya
Agar aplikasi lebih cepat dijalankan
Agar program terstruktur, modular, dan mudah dipelihara
Supaya tidak perlu menulis kode
2.
MULTIPLE CHOICE QUESTION
2 mins • 5 pts
Apa yang akan terjadi jika kita menjalankan $laptop1->info(); sebelum memberi nilai ke $merk dan $ram?
Menampilkan error
Menampilkan string kosong
Menampilkan data default
Menjalankan perulangan
3.
MULTIPLE CHOICE QUESTION
2 mins • 5 pts
Dalam konteks OOP, mana yang termasuk contoh method?
$this->nama = "Ari";
class Mahasiswa { public $nama; }
public function belajar() { echo "Belajar..."; }
$mahasiswa1 = new Mahasiswa();
4.
MULTIPLE CHOICE QUESTION
2 mins • 5 pts
Mengapa kita perlu membuat object dari sebuah class?
Karena PHP tidak bisa dijalankan tanpa object
Agar bisa menyimpan data dalam database
Agar bisa menggunakan properti dan method dari class
Agar tampilan web jadi menarik
5.
MULTIPLE CHOICE QUESTION
2 mins • 5 pts
Manakah dari berikut ini adalah konsep dasar OOP?
Array, Looping, Kondisi
Input, Output, Variabel
Class, Object, Method, Property
Server, Client, Database
6.
MULTIPLE CHOICE QUESTION
2 mins • 5 pts
Apa yang dimaksud dengan object dalam OOP PHP?
Sebuah variabel yang menyimpan angka
Fungsi yang bisa digunakan berulang
Hasil nyata dari class
Template untuk membuat data
7.
MULTIPLE CHOICE QUESTION
2 mins • 5 pts
Apa output yang benar jika ditambahkan kode:
echo $laptopBaru->merk;
Asus
$merk
Laptop
Error
Create a free account and access millions of resources
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
15 questions
Cembridge 11-klass 2-sherek 1-baqlaw
Quiz
•
11th Grade
15 questions
Quiz 3. Struktur Data
Quiz
•
8th Grade - University
20 questions
KILAS BALIK MATERI SEBELUMNYA
Quiz
•
9th - 12th Grade
15 questions
INFORMATIKA KLS IX UH
Quiz
•
9th - 12th Grade
15 questions
Kelas 7 TIK
Quiz
•
7th Grade - University
20 questions
Uji Pengetahuan TIK untuk Siswa Kelas 9
Quiz
•
9th Grade - University
20 questions
SOAL STS TIK KELAS 11 SMA SETIA BHAKTI SEMESTER GANJIL
Quiz
•
11th Grade
16 questions
HTML Level 1
Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Information Technology (IT)
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
36 questions
Benchmark 2 Review (LEAP)
Quiz
•
11th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
hands washing
Quiz
•
5th - 12th Grade
