Search Header Logo

Pemrograman Berorientasi Objek

Authored by Anisa Rahma

Other, Computers

1st - 5th Grade

Used 108+ times

Pemrograman Berorientasi Objek
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?