ETS Pemrograman Berorientasi Obyek

Quiz
•
Engineering
•
University
•
Easy
Dimas Wardhana
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
UNIT 1 OOPQuiz

Quiz
•
University
15 questions
TRICODE CHALLENGE ROUND 1

Quiz
•
University
20 questions
Java MCQ Test Day-2

Quiz
•
University
15 questions
BugBlitz

Quiz
•
University
20 questions
CODEBURST : JAVA EDITION

Quiz
•
University
12 questions
Understanding Inheritance in Python

Quiz
•
University
15 questions
TECH WHIZ

Quiz
•
University
10 questions
Embedded System-2-INS

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade