Berapa nilai yang terkandung pada variabel 'result'?
int x = 8, y = 5;
int result = x%y;
Pemrograman Berorientasi Objek
Quiz
•
Other, Computers
•
1st - 5th Grade
•
Medium
Anisa Rahma
Used 106+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Berapa nilai yang terkandung pada variabel 'result'?
int x = 8, y = 5;
int result = x%y;
-3
5
13
3
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
isi kode yang kosong.
public class Person {_____ int age;
_____ void setAge (____ age)
(if (age>0) {this.age = age;
private,public,int
final,public,int
static,private,string
static,private,int
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Isi bagian kosong berikut.
______ Apples {public static void main
(String[] args{System.out.println("Hello World"); }}
public class
extends
privateclass
integer
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Pada setiap program java pasti ? ......
...semua variabel harus integer
...harus ada satu method 'main'
...harus ada dua variable yang dideklarasi
...harus memiliki class
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Komen single-line dibuat dengan cara ?
//characters dibelakang line
**characters didepan line
//characters didepan line
*/characters didepan line
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Konstruktur harus memiliki nama yang sama dengan class.
false
true
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Apa output dari kode berikut :
int x = 15;
int y = 4;
int result = x / y;
System.out.println(result)
19
11
3
4
15 questions
Массивтер
Quiz
•
1st - 5th Grade
20 questions
quiz dasar python
Quiz
•
1st Grade - University
21 questions
Final Exam
Quiz
•
3rd Grade
18 questions
Scanner & If Statements
Quiz
•
5th - 12th Grade
20 questions
Pyhton Input and Output Basics
Quiz
•
5th Grade
20 questions
หน่วยที่ 2 : การเขียนโปรแกรมด้วยภาษา C
Quiz
•
3rd Grade
16 questions
Loops
Quiz
•
5th - 12th Grade
25 questions
Pemrograman dasar
Quiz
•
1st Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
18 questions
Main Idea & Supporting Details
Quiz
•
5th Grade
5 questions
Basement Basketball
Quiz
•
3rd Grade
20 questions
Parts of Speech
Quiz
•
3rd - 6th Grade