Codean Java - Conditional

Quiz
•
Information Technology (IT)
•
University
•
Medium
Kapten Nemo
Used 2+ times
FREE Resource
48 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perintah berikut digunakan untuk mencetak Hello World
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 Wayground
45 questions
Chapter 1 to Chapter 5 python

Quiz
•
University
50 questions
Кәсіби ағылшын 1 - 50

Quiz
•
University
45 questions
MIDTERM - BSED SCIENCE

Quiz
•
University
43 questions
ITE314 P2 EXAM REVIEWER

Quiz
•
University
50 questions
Latihan USP Informatika IX paket 2

Quiz
•
9th Grade - University
51 questions
SOAL PKK - 3 Tahun 2024-2025

Quiz
•
1st Grade - University
46 questions
Câu hỏi về Thuật toán

Quiz
•
University
51 questions
Final Exam Review: Information Management

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University