Perintah berikut digunakan untuk mencetak Hello World
Codean Java - Conditional

Quiz
•
Information Technology (IT)
•
University
•
Hard
Kapten Nemo
Used 1+ times
FREE Resource
48 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
System.out.println(Hello World);
System.out.println("Hello World");
system.out.println("Hello World");
system.out.println(Hello World);
System.Out.Println("Hello World");
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perintah berikut digunakan untuk mendeklarasikan variabel it bertipe byte
Byte it;
it byte;
byte it;
byte: it;
it: byte;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pernyataan berikut yang salah
int merupakan tipe untuk bilangan bulat
double merupakan tipe untuk bilangan pecahan
String merupakan tipe yang sudah berupa struktur/kelas
boolean merupakan tipe untuk nilai logika benar-salah
char merupakan tipe untuk kumpulan karakter
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perintah berikut digunakan untuk mengisi nilai abc ke xyz
xyz = abc;
abc -> xyz;
abc = xyz;
abc == xyz;
xyz == abc;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perintah berikut digunakan untuk membaca nilai integer
Scanner sc = new Scanner(System.in);
Scanner sc = new System(Scanner);
x = sc.nextInt();
import java.util.Scanner;
int x = Scanner.nextInt();
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Scanner input = new Scanner(); Perintah tersebut menghasilkan error karena
Perintah membaca belum disimpan ke dalam variabel
Input merupakan reserved word (tercetak tebal), tidak bisa digunakan sebagai variabel
Seharusnya tidak menggunakan perintah new
Belum menggunakan fungsi nextInt()
Konstruktor Scanner() perlu diberi parameter
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perintah manakah yang mengeluarkan pesan kesalahan
boolean b = c > d;
double i = 6 % 3;
int a = 2 - 3 * 4;
int j = 100 / 7;
String e = 'f' + "gh";
Create a free account and access millions of resources
Similar Resources on Quizizz
50 questions
Revisão de Sistemas Distribuídos

Quiz
•
University
51 questions
Algorithmization and Programming Quiz

Quiz
•
University
50 questions
Java қазақша 101 - 150

Quiz
•
University
50 questions
Java қазақша 151 - 200

Quiz
•
University
50 questions
тест

Quiz
•
University
50 questions
Основы Java программирования

Quiz
•
University
49 questions
Algorithmization and Programming

Quiz
•
University
43 questions
35-77

Quiz
•
University
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