PHP OOP 1 (Class s.d. Constructor)
Quiz
•
Information Technology (IT)
•
11th Grade
•
Medium
Muhammad Faishaluddin
Used 10+ times
FREE Resource
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Unit 1 Digital Information
Quiz
•
9th - 12th Grade
16 questions
HTML Level 1
Quiz
•
8th Grade - University
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
SOAL STS TIK KELAS 11 SMA SETIA BHAKTI SEMESTER GANJIL
Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Information Technology (IT)
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
15 questions
Identify Triangle Congruence Criteria
Quiz
•
9th - 12th Grade
23 questions
Similar Figures
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
