Codean Java - Conditional
Quiz
•
Information Technology (IT)
•
University
•
Medium
Kapten Nemo
Used 2+ times
FREE Resource
Enhance your content
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
50 questions
151-200
Quiz
•
University
52 questions
Trick Questions Quiz
Quiz
•
University
45 questions
MedLit Copyryt
Quiz
•
12th Grade - University
51 questions
ASSESMEN SUMATIF AKHIR SEMESTER - INFORMATIKA 8A
Quiz
•
8th Grade - University
48 questions
SOAL - 6 INFORMATIKA KELAS X
Quiz
•
2nd Grade - University
46 questions
Đề Kiểm Tra Tin Học
Quiz
•
10th Grade - University
45 questions
Quiz sobre Estructuras de Datos en Python
Quiz
•
University
53 questions
Hamming Code and Information Theory Quiz
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University