Search Header Logo

ETS Pemrograman Berorientasi Obyek

Authored by Dimas Wardhana

Engineering

University

Used 2+ times

ETS Pemrograman Berorientasi Obyek
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 4 pts

Apa hasil dari kode berikut? class A: def __init__(self): print("Kelas A") class B(A): def __init__(self): super().__init__() print("Kelas B") obj = B()

Tidak ada output

Kelas A

Kelas B

Kelas A dan Kelas B

2.

MULTIPLE CHOICE QUESTION

2 mins • 4 pts

Apa fungsi dari super() dalam Python?

Menjalankan konstruktor objek

Mengakses fungsi global

Mengakses metode parent class

Menginisialisasi variabel lokal

3.

MULTIPLE CHOICE QUESTION

2 mins • 4 pts

Manakah pernyataan berikut yang benar tentang OOP?

OOP tidak mendukung reuse kode

OOP membuat program lebih kompleks

OOP menyatukan data dan fungsi dalam satu unit

OOP tidak digunakan di dunia nyata

4.

MULTIPLE CHOICE QUESTION

2 mins • 4 pts

Jika class Karyawan mewarisi dari class Manusia, maka disebut?

Aggregasi

Polymorphism

Encapsulation

Inheritance

5.

MULTIPLE CHOICE QUESTION

2 mins • 4 pts

Manakah berikut ini yang termasuk prinsip OOP?

Selection

Encapsulation

Iteration

Compilation

6.

OPEN ENDED QUESTION

5 mins • 8 pts

Jelaskan konsep encapsulation dalam OOP dan berikan contohnya dalam Python.

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

5 mins • 8 pts

Apa yang dimaksud dengan inheritance? Jelaskan manfaatnya dengan contoh kasus sederhana.

Evaluate responses using AI:

OFF

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?