Java Quiz

Quiz
•
Computers
•
University
•
Hard
Dinda Alya
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
1. Pilihlah baris kode Java dibawah ini yang benar untuk menuliskan variabel!
var a = 12
a = 12;
Int number = 12;
int number = “12”;
int number = 12;
2.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Pilihlah nama variable yang paling tepat untuk Player 1’s username?
String p1 user name = “Cipung”
String 1_player_username = “Cipung”;
string player1_username = “Cipung”;
String player1_username = “Cipung”
String player1_username = “Cipung”;
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Pilihlah baris kode yang akan error!
String first_number = “5”;
System.out.print(“The first number is” + first_Number);
String the_first_number =”5”;
System.out.print(“The first number is” + the_first_number);
int first_number = 5;
System.out.print(“The first number is” + first_number);
int the_first_number = 5;
System.out.print(“The first number is” + the_first_number);
String first_number = 4;
System.out.print(“The first number is” + first_number);
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Pilihlah statement dibawah ini yang salah!
1000 adalah integer
“False” adalah boolean
“365” adalah String
606.07 adalah float
‘x’ adalah char
5.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Apa tipe data dari variable number?
number = 734_529.678
Float
Integer
String
Char
Boolean
6.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Ouput apa yang akan tampil pada kode dibawah ini?
System.out.print(6 + 4 / 2 - (1 * 2));
3
8,0
6,0
5
4,0
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Apa tipe data dari variable a?
Int a = “5” + 2.7;
Int
Float
String
Kode akan error
Char
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Basic 2 Python

Quiz
•
12th Grade - Professi...
20 questions
Code Junction 4

Quiz
•
University
20 questions
PHP Quiz 1

Quiz
•
University
20 questions
Quiz Komputer

Quiz
•
University
20 questions
Basic Python

Quiz
•
University
20 questions
Quiz PBO SIA

Quiz
•
University
20 questions
quiz dasar python

Quiz
•
1st Grade - University
20 questions
JAVA Basics Quiz

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade