PBO Inheritance Episode 2
Quiz
•
Computers
•
University
•
Practice Problem
•
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
15 questions
BASIC C PROGRAMMING
Quiz
•
University
20 questions
Kuis 2 - PKS 1
Quiz
•
University
20 questions
1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni
Quiz
•
University - Professi...
16 questions
Unit 2 Problem solving A level computer science
Quiz
•
12th Grade - University
20 questions
8-期中总结
Quiz
•
University
20 questions
Introduction To Computers
Quiz
•
University
20 questions
Teknologi WAN XI TKJ
Quiz
•
University
15 questions
IC3 GS6 Level 1 Domain 2 Lesson 1
Quiz
•
6th Grade - University
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 Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
