
Praktisi Mengajar - Java Test
Authored by Lintang Wisesa
Instructional Technology, Education, Other
University
Used 12+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Berikut adalah tipe data yang tergolong primitif di Java, kecuali...
short
float
double
cloud
2.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
String x = "Java";
System.out.println( x.indexOf('a') );
Output dari code di atas adalah...
1
2
3
4
3.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Berikut adalah deklarasi variabel yang salah, kecuali...
byte x = 130;
string x = 'Hello!';
char x = '\u0061';
boolean x = True;
4.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
int x = 3;
x *= 2;
System.out.println(x);
Output dari code di atas adalah...
2
5
6
9
5.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Berdasarkan snippet code di samping, berikut adalah statement yang benar, kecuali...
A hanya menerima argument berupa integer
b dan c adalah parameter A
A adalah method atau function
A merupakan object dari class b dan c
6.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Berikut termasuk kategori dalam control flow statements di Java, kecuali...
Branching
Merging
Decision Making
Looping
7.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Output dari snippet code di samping adalah...
Anda Lulus!
Anda Lulus Sempurna!
Anda Remidial!
Error
Access all questions and much more by creating a free account
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
Already have an account?