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
Similar Resources on Wayground
20 questions
Web 3.1-3.3 Bacaan

Quiz
•
11th Grade
20 questions
PTS INFORMATIKA SEMESTER GENAP

Quiz
•
8th Grade - University
15 questions
Object Oriented Programming

Quiz
•
11th Grade
20 questions
Quizizz SIOTICS #2

Quiz
•
10th Grade - University
15 questions
Grade11_COMPROG2_Q4_Quiz#2

Quiz
•
11th Grade
20 questions
WEB 2.1

Quiz
•
11th Grade
20 questions
WEB 2.4

Quiz
•
11th Grade
20 questions
WEB 2.2

Quiz
•
11th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
ROAR Week 2025

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
37 questions
SJHS Key Student Policies

Quiz
•
11th Grade
12 questions
Macromolecules

Lesson
•
9th - 12th Grade
13 questions
Cell Phone Free Act

Quiz
•
9th - 12th Grade
8 questions
STAR Assessment Practice Questions

Quiz
•
9th - 12th Grade
28 questions
Rules and Consequences Part A

Quiz
•
9th - 12th Grade