Simulasi 4

Quiz
•
Computers
•
10th Grade
•
Hard
Nur Hasanah
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 • 1 pt
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 • 1 pt
Perhatikan code program dibawah 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 package yang sama
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 • 1 pt
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 • 1 pt
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
9 questions
3DS Max Unit 2

Quiz
•
9th - 12th Grade
10 questions
QUIZIZ JARINGAN KOMPUTER DA INTERNET

Quiz
•
10th Grade
15 questions
Quiz Logika dan Algoritma

Quiz
•
10th Grade
10 questions
PSTS Pemrograman Perangkat Bergerak XIPPLG

Quiz
•
10th Grade
10 questions
Kuis Algoritma Dasar

Quiz
•
10th Grade
10 questions
PRETEST 1 SCRATCH

Quiz
•
1st Grade - University
12 questions
Codehs

Quiz
•
9th - 12th Grade
10 questions
Algoritma dan Pemrograman (A)

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade