PBO Inheritance Episode 2
Quiz
•
Computers
•
University
•
Hard

Wikky Quiz
Used 68+ times
FREE Resource
Enhance your content in a minute
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Perhatikan kode berikut.
class Vehicle
{
int maxSpeed = 120;
}
class Car extends Vehicle
{
int maxSpeed = 180;
void display() {
System.out.println("Maximum Speed: " + super.maxSpeed);
}
}
/* Driver program to test */
class Test
{
public static void main(String[] args)
{
Car small = new Car(); small.display();
}
}
Pada output program, berapa nilai maksimum speed yang ditampilkan?
120
180
120 dan 180
semua salah
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Manakah di bawah ini yang bukan konteks penggunaan keyword super dalam Java?
konstruktor
variabel
method
kelas
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Manakah pernyataan di bawah ini yang salah?
Method overriding harus mempunyai return type yang sama
Method yang diset private tidak bisa dilakukan overriding
Overrriding adalah salah satu bentuk run time polymorphism
Kita bisa override konstruktor sebagai parent
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Reusability, peningkatan fleksibilitas dan data hiding adalah manfaat dari ....
Abstraksi
Enkapsulasi
Polimorfisme
Pewarisan
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Keyword yang digunakan untuk inheritance adalah ...
super
extend
extends
inherit
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Implementation hiding sering dikenal sebagai ...
pewarisan
enkapsulasi
abstraksi data
polimorfisme
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Di bawah ini keuntungan abstraksi data kecuali ...
mengurangi kompleksitas melihat sesuatu
mencegah duplikasi kode
menurunkan reusabiity
meningkatkan keamanan
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
20 questions
E-commerce Chapter 1
Quiz
•
University
20 questions
SECOND QUIZ
Quiz
•
University
18 questions
Programming in C language
Quiz
•
12th Grade - University
15 questions
ICT 0513 - Chapter 4 : System Unit
Quiz
•
University
20 questions
Quiz Inf X.B
Quiz
•
10th Grade - University
20 questions
Administrasi Infrastruktur Jaringan - April 2020 (1)
Quiz
•
University
16 questions
Python Basics
Quiz
•
KG - University
20 questions
Python Recap
Quiz
•
7th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
