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
Latihan USP Informatika IX paket 2

Quiz
•
9th Grade - University
50 questions
informatika/SIMDIG XI (ASAS 2425)

Quiz
•
11th Grade - University
50 questions
ITCC104: Long Quiz 1

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

Quiz
•
University
51 questions
Final Exam Review: Information Management

Quiz
•
University
50 questions
Revisão de Sistemas Distribuídos

Quiz
•
University
51 questions
Algorithmization and Programming Quiz

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