Pengayaan : Soal Matpel PBTGM Kelas 12 RPL 2
Quiz
•
Engineering
•
12th Grade
•
Practice Problem
•
Easy
FIKRI BAHTIAR
Used 6+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa Output Codingan dibawah ini .....
class Animal {
public function sound() {
return "Animal Sound";
}
}
class Dog extends Animal {
public function sound() {
return "Bark";
}
}
$dog = new Dog();
echo $dog->sound();
Animal Sound
Bark
Error
Dog Sound
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output dari kode berikut?
Apa output dari kode berikut?
class Car {
public $color = "Red";
public function getColor() {
return $this->color;
}
}
$myCar = new Car();
$myCar->color = "Blue";
echo $myCar->getColor();
Red
Blue
Error
NULL
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang dimaksud dengan public dalam deklarasi metode atau properti dalam PHP OOP?
Akses hanya bisa dilakukan dari dalam kelas yang sama
Akses bisa dilakukan dari kelas mana pun
Akses hanya bisa dilakukan dari objek
Akses hanya bisa dilakukan dari kelas turunan
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mana yang benar tentang penggunaan construct() dalam PHP?
Itu adalah metode yang dipanggil secara otomatis saat objek dibuat
Itu adalah metode yang dipanggil saat objek dihapus
Itu adalah metode yang tidak bisa menerima parameter
Itu adalah metode yang hanya dipanggil oleh kelas turunan
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang dimaksud dengan inheritance dalam PHP OOP?
Mengubah properti objek setelah objek dibuat
Menurunkan properti dan metode dari kelas induk ke kelas turunan
Memanggil metode statis dari kelas lain
Menggunakan fungsi di luar kelas
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang ditunjukkan oleh kode berikut?
class Car {
private $engine;
public function __construct($engine) {
$this->engine = $engine;
}
public function getEngine() {
return $this->engine;
}
}
$myCar = new Car("V8");
echo $myCar->getEngine();
NULL
V8
ERROR
Engine
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang terjadi jika Anda mencoba mengakses properti private dari luar kelas?
Nilai properti tidak bisa diubah
Akan muncul error
Nilai properti dapat diubah
Properti menjadi public
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
12 questions
PHYS Ch 3 Quiz 1
Quiz
•
9th - 12th Grade
20 questions
Power
Quiz
•
10th Grade - University
12 questions
Quiz on Variables and Arithmetic Operations
Quiz
•
12th Grade - University
20 questions
Quiz on Newton's Laws of Motion
Quiz
•
10th Grade - University
15 questions
Introduction to Engineering Design Course Agreement Quiz
Quiz
•
12th Grade
10 questions
Vibrations Quiz - Multi Degree of Freedom Systems
Quiz
•
12th Grade - University
15 questions
G7 Unit2 Review
Quiz
•
7th Grade - University
12 questions
Quiz tentang Mesin Las SMAW
Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Engineering
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
34 questions
Geometric Terms
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
16 questions
Proportional Relationships And Constant Of Proportionality
Quiz
•
7th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
15 questions
Identify Triangle Congruence Criteria
Quiz
•
9th - 12th Grade
