Search Header Logo

Latihan Interface

Authored by Antik Hariyanti

Computers

9th - 12th Grade

Used 7+ times

Latihan Interface
AI

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

10 sec • 1 pt

Interface merupakan solusi untuk masalah .... ganda pada class

pewarisan

polimorfisme

method

function

deklarasi

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Sebuah interface tidak boleh mengandung nilai yang bersifat ...

public

dinamis

tetap

besar

kecil

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Interface dideklarasikan menggunakan keyword ....

extends

implements

methods

declare

interface

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Sebuah interface dapat melakukan extends pada ....

class induk

class lain

interface lain

method lain

package lain

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Class hanya diperkenankan melakukan pewarisan pada 1 class lain, tetapi dapat mengimplementasikan interface sebanyak ....

maksimal 1

maksimal 2

maksimal 3

maksimal 4

berapapun

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Kode Program berikut ini yang tidak boleh digunakan untuk method di dalam sebuah interface adalah ....

System.out.println ("Interface Error")

System.out.println ("Interface Ready")

int jumlah = jumlah + 1

int nilai = 2

System.out.println ("5+3")

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Secara default, sebuah interface bersifat ....

private

protected

public

secret

hidden

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?