Manakah dari berikut ini adalah cara yang benar untuk mendeklarasikan variabel nama yang bertipe String di Java?

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
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 Quizizz
40 questions
Kisi kisi soal Pemrograman Berorientasi Objek

Quiz
•
11th Grade
37 questions
AP CSA Review Set #1

Quiz
•
9th - 12th Grade
40 questions
XII RPL - PBO GANJIL

Quiz
•
KG - Professional Dev...
40 questions
ee09_SG22.01

Quiz
•
11th - 12th Grade
40 questions
AP Computer Science Java Practice Exam #2

Quiz
•
9th - 12th Grade
40 questions
Quizz PTS Kelas XI Struktur Data Array

Quiz
•
11th Grade - University
40 questions
ASAS SAINS KOMPUTER T2 [ULANGKAJI]

Quiz
•
1st Grade - University
40 questions
ASAS INFORMATIKA 8

Quiz
•
8th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
10 questions
Right Triangles: Pythagorean Theorem and Trig

Quiz
•
11th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade