Diantara perintah untuk mencetak berikut, yang benar adalah...
java

Quiz
•
Computers
•
1st - 3rd Grade
•
Hard
adhika dhaffa
Used 37+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
System.out.println(“Mid Java”)
System.Out.println(“Mid Java ”)
system.Out.PrintLn("Mid Java")
System.out.Printing("mid java")
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Penulisan rumus yang benar dalam Java pertama kali adalah...
public class Youtube{
public static void main {string arms []} {
System.out.println("Youtube Channel);
}
}
public class Youtube {
Public static void main (string args []) {
System.out.println("Youtube Channel");
}
}
public class Youtube {
public static void main (string args []) {
System.out.println("Youtube Channel");
}
}
public class Youtube {
public static void main (string args []) {
System.out.printing("Youtube Channel");
}
}
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Jika ada text seperti ini :
public class Scope {
int x = 10; int a = 4;
public static void main(String[] args) {
System.out.println("Variabel a = " + a);
{
int y = 5;
System.out.println("Nilai x = " + x);
System.out.println("Nilai a = " + a);
{ int z = 20;
System.out.println("Nilai x+y+z+a = " +
(x + y + z + a));
}
//z = 11; --> error
System.out.println("Nilai y = " + y);
}
// y = 12; --> error
System.out.println("Nilai x = " + x);}}
Maka hasil yang akan muncul adalah...
run :
Variabel a = 4
Nilai x = 10
Nilai a = 4
Nilai x + y + z + a = 39
Nilai y = 5
Nilai x = 10
run :
Variabel a = 4
Nilai x = 10
Nilai a = 4
Nilai x + y + z + a = 40
Nilai y = 5
Nilai x = 10
run :
Variabel a = 4
Nilai x = 10
Nilai a = 4
Nilai x + y + z + a = 39
Nilai y = 5
Nilai z = 10
run :
Variabel a = 4
Nilai x = 10
Nilai a = 4
Nilai x + z + y + a = 39
Nilai y = 5
Nilai x = 10
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Jika ada soal seperti ini :
public class Tugas 1 {
public static void main(string[] args) {
String b = "9";
String a = "4';
System.out.println("String a = " + a);
System.out.println("String b = " + b);
//casting dari string ke int
int a1 = Integer.parseInt(a);
int b1 = Integer.parseInt(b);
int hasil = a1 + b1;
System.out.println("a + b = " + hasil);
int c = 9;
int d = 2;
int hasil2 = c / d;
//casting dari int ke double
double hasil3 = (double)c/d;
//hasil dengan tipe int
System.out.println("c/d = " + hasil2);
System.out.println("c/d = " + hasil3);
}
}
Maka hasil yang akan muncul adalah...
String a = 4
String b = 9
a + b = 13
c/d = 4
c/d = 4.5
String a = 2
String b = 1
a + b = 3
c/d = 5
c/d = 5.5
String a = 24
String b = 10
a + b = 14
c/d = 2
c/d = 3.5
String a = 3
String b = 6
a + b = 11
c/d = 9
c/d = 2
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Simbol manakah yang menunjukan arti Negasi (NOT)
>>
?
~
|
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Salah satu syarat penamaan pada class yaitu :
Tidak diawali dengan huruf kapital ataupun huruf non-kapital
Tidak boleh mengandung spasi
Bila lebih dari dua kata, huruf kedua diawali dengan huruf kecil
Karakter yang diperbolehkan hanya huruf di awal kata
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
10. Diantara pernyataan berikut, penulisan sintaks BbufferredReader yang benar adalah
int data =BufferedReader = new BufferedReader(new input Stream Reader(System.in) ).Readline( ).intValue( );
int data =BufferedReader = new BufferedReader(new InputStreamReader(System.in) ).Readline( ).intValue( );
int data=(new Integer((new BufferedReader = new BufferedReader(new input Stream Reader(System.in))).readline( )).intValue( ));
int data = (new Integer( (new BufferedReader (new InputStreamReader (System.in)) ).readLine()).intValue());
Create a free account and access millions of resources
Similar Resources on Quizizz
40 questions
ASK KOD ARAHAN T2

Quiz
•
2nd Grade
40 questions
UD2 Condicionales y bucles

Quiz
•
1st - 10th Grade
35 questions
Программирование на С++

Quiz
•
1st - 5th Grade
44 questions
Quiz Basi C parte 2

Quiz
•
2nd Grade
45 questions
2022苏州软件比武大赛—选择题_正式题

Quiz
•
2nd Grade
40 questions
PTS Basis Data Kelas XI

Quiz
•
2nd Grade
45 questions
GCSE Python Legends

Quiz
•
1st - 12th Grade
41 questions
Quiz 2

Quiz
•
1st 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
10 questions
American Flag

Quiz
•
1st - 2nd Grade
14 questions
IREAD-3 Practice Test

Quiz
•
3rd Grade
10 questions
Identifying equations

Quiz
•
KG - University
10 questions
Perimeter of Polygons!

Quiz
•
3rd Grade
10 questions
2nd Grade math review

Quiz
•
2nd Grade
20 questions
Math Review

Quiz
•
3rd Grade
18 questions
Traits

Quiz
•
3rd Grade
16 questions
Chapter 8 - Getting Along with your Supervisor

Quiz
•
3rd Grade - Professio...