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
37 questions
AP CSA Review Set #1

Quiz
•
9th - 12th Grade
40 questions
Java Test - 1

Quiz
•
9th - 12th Grade
41 questions
PBO

Quiz
•
11th Grade
40 questions
XII RPL - PBO GANJIL

Quiz
•
KG - Professional Dev...
40 questions
Quiz Informatika Kelas XI

Quiz
•
11th Grade - University
40 questions
Penilaian Akhir Semester Ganjil - PBO Kelas XI RPL -SMK_AB

Quiz
•
11th Grade
40 questions
STS GANJIL KONSENTRASI KEAHLIAN 11 RPL

Quiz
•
11th Grade
45 questions
PTS - Informatika 11 MIA

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University