
SOAL ATS GENAP JAVA
Authored by task rpl6
Information Technology (IT)
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 4 pts
Komponen Swing mana yang digunakan untuk input teks dari pengguna adalah
jButton
jLabel
jTextArea
jTextField
2.
MULTIPLE CHOICE QUESTION
1 min • 4 pts
"i++" is which type of operator?
Arithmetic
Decrement
Logical
Increment
3.
MULTIPLE CHOICE QUESTION
1 min • 4 pts
If the syntax is i = i + 1, it is equivalent to?
i -= 1
i--
i += 1
i
4.
MULTIPLE CHOICE QUESTION
3 mins • 4 pts
What is the output of the following code: int a1 = 100 + 50 * 4; int a2 = a1 * 2; int a3 = a2 + a2; System.out.println(a3);
2400
1200
1000
2000
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If there are two operands with values 1 and 0 given the AND operator, what will be the result?
false
true
6.
MULTIPLE CHOICE QUESTION
5 mins • 4 pts
What is the output of the following code: class increment { public static void main(String args[]) { double var1 = 1 + 5; double var2 = var1 / 4; int var3 = 1 + 5; int var4 = var3 / 4; System.out.print(var2 + "dan" + var4); } }
outputnya adalah?
1.5 dan 1
1 dan 1.5
1 dan 1
1 dan 15
7.
MULTIPLE CHOICE QUESTION
3 mins • 4 pts
int a = 5; int b = 8; int c = 3;
System.out.println(a + b / c * 2);
outputnya adalah?
6
9
11
8
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?