
Quiz Pemrograman Java dan SQL
Authored by RIVAN PRASETIA
Fun
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa fungsi utama dari Class.forName("com.mysql.jdbc.Driver"); dalam program ini?
Untuk membuka koneksi ke database
Untuk menutup koneksi ke database
Untuk menampilkan data dari tabel
Untuk memuat driver MySQL agar dapat digunakan dalam Java
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perintah SQL insert into tbl_user (name, username, password) values (...) digunakan untuk...
Menghapus data dari tabel
Memperbarui data dalam tabel
Menampilkan data dari tabel
Menambahkan data baru ke tabel
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pada bagian program berikut ini if(txt_username.getText().equals(rs.getString("username")) && txt_password.getText().equals(rs.getString("username"))), yang perlu diperbaiki adalah...
Mengganti && dengan ||
Menambahkan dialog pesan login berhasil
Tidak ada yang perlu diubah
rs.getString("username") pada bagian kedua harus diubah menjadi rs.getString("password")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fungsi dari metode autonumber() adalah...
Menambah data baru ke tabel
Menghapus data dari tabel
Mencari data berdasarkan kode_barang
Mengisi nomor secara otomatis untuk kode_barang
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pada perintah stat.executeUpdate("update tabel_barang set ..."), perintah ini digunakan untuk...
Menambah data ke tabel
Menghapus data dari tabel
Menampilkan data dari tabel
Memperbarui data dalam tabel
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Komponen GUI JTextField pada kode program digunakan untuk...
Menampilkan data dalam bentuk tabel
Menyimpan data sementara
Menjalankan query SQL
Menerima input teks dari pengguna
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pada kode txt_name.setText(null);, fungsi dari perintah tersebut adalah...
Menghapus data dari database
Menampilkan data dari database
Menutup koneksi database
Menghapus teks dalam JTextField
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
15 questions
Among Us (The Skelds)
Quiz
•
KG - Professional Dev...
10 questions
MATEMATIKA - BAB SEGIEMPAT/GARIS PG
Quiz
•
3rd - 12th Grade
15 questions
SOAL EXPO CAMPUS SMANIWA 2023
Quiz
•
9th - 12th Grade
20 questions
Quiz ASJ
Quiz
•
12th Grade
10 questions
k pop
Quiz
•
KG - Professional Dev...
20 questions
Quiz anime
Quiz
•
5th Grade - University
20 questions
ANALISA TRANSAKSI DAN JURNAL PERUSAHAAN JASA
Quiz
•
12th Grade
15 questions
Tipe tipe kepribadian
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Fun
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
23 questions
TSI Math Vocabulary
Quiz
•
10th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
Predicting Products
Quiz
•
9th - 12th Grade
20 questions
Presidents Day challenge
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
20 questions
Banking
Quiz
•
9th - 12th Grade