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
Diantara perintah untuk mencetak berikut, yang benar adalah...
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 Wayground
40 questions
30 soal PBO

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

Quiz
•
1st - 5th Grade
40 questions
ASAS SAINS KOMPUTER T2 [ULANGKAJI]

Quiz
•
1st Grade - University
39 questions
Ulangkaji ASK T2 Bab 3.2 Struktur Kod Arahan

Quiz
•
1st - 12th Grade
38 questions
Python Basic

Quiz
•
1st - 3rd Grade
40 questions
Uji Kompetensi Keahlian 2021/2022

Quiz
•
1st Grade
41 questions
Quiz 2

Quiz
•
1st Grade
37 questions
java-ExceptionHandling-vlits

Quiz
•
1st Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
9 questions
A Fine, Fine School Comprehension

Quiz
•
3rd Grade
12 questions
Passport Quiz 1

Quiz
•
1st - 5th Grade
10 questions
Place Value

Quiz
•
3rd Grade
8 questions
Writing Complete Sentences - Waiting for the Biblioburro

Lesson
•
3rd Grade
10 questions
Third Grade Angels Vocab Week 1

Quiz
•
3rd Grade
12 questions
New Teacher

Quiz
•
3rd Grade