
Quiz Pemrograman Java

Quiz
•
Computers
•
11th Grade
•
Hard
Rosalia pare
Used 2+ times
FREE Resource
42 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah dari berikut ini adalah cara yang benar untuk mendeklarasikan variabel nama yang bertipe String di Java?
String nama;
nama String;
string nama;
String nama = null;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Di Java, tipe data apa yang digunakan untuk menyimpan nilai pecahan atau desimal?
int
String
double
char
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah di bawah ini yang merupakan cara penamaan variabel yang benar di Java?
1Angka
Angka Pertama
_angkaPertama
angka-pertama
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa hasil dari operasi berikut jika int x = 7; dan int y = 2;? int z = x % y; System.out.println(z);
1
2
3
0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Di Java, tipe data apakah yang akan digunakan untuk menyimpan nilai true atau false?
String
boolean
int
float
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah cara yang benar untuk mengonversi variabel angka bertipe int menjadi String di Java?
String.valueOf(angka)
Integer.toString(angka)
(String) angka
a dan b benar
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang akan ditampilkan oleh kode berikut ini? int a = 5; double b = 6.5; System.out.println(a + b);
11
11.5
10.5
Error
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
ee09_SG22.01

Quiz
•
11th - 12th Grade
41 questions
Java Loops

Quiz
•
10th - 12th Grade
42 questions
tin gkii 11

Quiz
•
11th Grade
40 questions
ASAS INFORMATIKA 8

Quiz
•
8th Grade - University
40 questions
National 5 Computing Science - Revision 2

Quiz
•
10th - 12th Grade
40 questions
kisi-kisi kelas 9 TI

Quiz
•
11th Grade
39 questions
APCSA Unit 2 String Methods

Quiz
•
9th - 12th Grade
44 questions
Multidimensional list and tuples 2025

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