Simulasi 3

Quiz
•
Computers
•
10th Grade
•
Hard
Nur Hasanah
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Berikut adalah beberapa keuntungan menggunakan Access Modifier dalam OOP, kecuali…
Meningkatkan keamanan data dengan membatasi akses
Mempermudah kolaborasi antar programmer dengan standarisasi akses
Meningkatkan readability kode dengan struktur yang jelas
Mempermudah akses data dari luar class tanpa kontrol
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Sebuah program OOP memiliki beberapa class dengan struktur hirarki. Manakah Access Modifier yang paling tepat untuk diterapkan pada variabel yang hanya boleh diakses oleh class turunan dan class parent?
Public
Private
Protected
Default
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Perhatikan Program di bawah ini
public class x_rpl {
public String nama;
public void cetakNama() {
System.out.println("Nama: " + nama);
}
public static void main(String[] args) {
x_rpl siswa = new x_rpl ();
siswa.nama = " nama siswa";
siswa.cetakNama();
} }
Access modifier yang digunakan pada program diatas adalah …
Public
Private
Protected
Default
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang dimaksud dengan Access Modifier Private …
Dapat diakses oleh class itu sendiri dan sub class nya
Hanya dapat diakses oleh class itu sendiri
Dapat diakses oleh semua class dalam program
Dapat diakses oleh semua class dalam paket yang sama
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Tujuan dari penggunaan Access Modifier adalah …
Meningkatkan keamanan data
Mempermudah proses debugging
Menjaga integritas data dan kode dalam program berorientasi objek
Meningkatkan efisiensi kode
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Bagaimana cara penulisan Access Modifier Default dalam Bahasa pemrograman java …
public class xrpl {
String nama = "Ana";
int umur = 23 ;
public class xrpl {
private String nama = "Ana";
private int umur = 23 ;
public class xrpl {
protected String nama = "Ana";
protected int umur = 23 ;
public class xrpl {
public String nama = "Ana";
public int umur = 23 ;
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Enkapsulasi dalam pemrograman berorientasi objek adalah…
Teknik untuk membuat kode lebih mudah dibaca dan dipahami
Teknik untuk meningkatkan efisiensi kode
Teknik untuk menyembunyikan detail implementasi sebuah class
Teknik untuk meningkatkan portabilitas kode
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Javascript Variables

Quiz
•
10th Grade
6 questions
Sains Komputer Tingkatan 4 - 1.3.5 Penggunaan Penyataan

Quiz
•
7th - 12th Grade
10 questions
Review Kotlin Day 1

Quiz
•
9th - 12th Grade
10 questions
Berikir Komputasional Fase E

Quiz
•
9th - 12th Grade
10 questions
BTEC DIT C3 LAA - Communication with Stakeholders

Quiz
•
10th - 11th Grade
14 questions
Creating Java Programs

Quiz
•
10th - 12th Grade
11 questions
JAVA QUIZ

Quiz
•
1st - 12th Grade
10 questions
ASESMEN AWAL PEMBELAJARAN DPK

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade