
PHP OOP 1 (Class s.d. Constructor)
Authored by Muhammad Faishaluddin
Information Technology (IT)
11th Grade
Used 11+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
15 questions
Pemanfaatan Google Drive untuk Siswa
Quiz
ā¢
11th Grade - University
16 questions
Quiz Corel Draw
Quiz
ā¢
11th Grade
15 questions
Quiz Array Kelas XI
Quiz
ā¢
11th Grade
15 questions
KEAMANAN DATA
Quiz
ā¢
9th - 12th Grade
20 questions
Kuis Ms Word 1
Quiz
ā¢
7th Grade - University
20 questions
Quiz Roblox Studio 2
Quiz
ā¢
4th Grade - University
15 questions
Fiber Optik
Quiz
ā¢
11th Grade
20 questions
Konsep Sistem Operasi jaringan
Quiz
ā¢
11th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
ā¢
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
ā¢
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
ā¢
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
ā¢
3rd Grade
3 questions
Integrity and Your Health
Lesson
ā¢
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
ā¢
5th Grade
9 questions
FOREST Perception
Lesson
ā¢
KG
20 questions
Main Idea and Details
Quiz
ā¢
5th Grade
Discover more resources for Information Technology (IT)
8 questions
Spartan Way - Classroom Responsible
Quiz
ā¢
9th - 12th Grade
22 questions
El Imperfecto
Quiz
ā¢
9th - 12th Grade
15 questions
ACT Reading Practice
Quiz
ā¢
11th Grade
20 questions
Grammar
Quiz
ā¢
9th - 12th Grade
18 questions
Mendelian Genetics
Quiz
ā¢
10th - 12th Grade
20 questions
verbos reflexivos en espaƱol
Quiz
ā¢
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
ā¢
7th - 12th Grade
25 questions
Early Cold War Quizziz
Quiz
ā¢
11th Grade