Pretes Inheritance P1

Pretes Inheritance P1

University

10 Qs

quiz-placeholder

Similar activities

Software Engineering

Software Engineering

University

10 Qs

01. Proceso de Programación de Software

01. Proceso de Programación de Software

University

10 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Planning and Implementation of Information Security

Planning and Implementation of Information Security

University

10 Qs

Hyrje në SO

Hyrje në SO

University

10 Qs

2025 python class first quiz

2025 python class first quiz

9th Grade - University

10 Qs

basic computer design

basic computer design

University

10 Qs

Application Development Midterm Quiz

Application Development Midterm Quiz

University

15 Qs

Pretes Inheritance P1

Pretes Inheritance P1

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Krisna Milenia

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Konsep pemrograman di mana sebuah class dapat menurunkan property dan method yang dimilikinya kepada class lain disebut…

Polymorphism

Inheritance

Access modifier

Class

Objek

2.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Suatu class yang dapat mewarisi property dan methodnya kepada class lain disebut…

Primary class

Sub class

Child class

Super class

Derived class

3.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Suatu class yang mendapatkan warisan property dan method dari class lain disebut…

Primary class

Parent class

Child class

Super class

Base class

4.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Berikut ini, manakah contoh super class dan sub class yang paling tepat?

Sapi dan ayam

Hewan dan tumbuhan

Sepeda dan kendaraan

Mamalia dan kucing

Anjing dan kucing

5.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Seorang programmer di toko kendaraan akan membuat program dengan memanfaatkan konsep inheritance (pewarisan). Dalam program tersebut terdapat class sepeda, kapal, kendaraan, motor, dan mobil. Dari class tersebut, manakah yang termasuk super class?

Sepeda

Kapal

Kendaraan

Motor

Mobil

6.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Media Image

Perhatikan potongan kode program pada gambar. Maksud dari potongan kode tersebut adalah…

Class Bola merupakan sub class dari class Lingkaran

Class Lingkaran merupakan turunan dari class Bola

Class Bola dan Class Lingkaran merupakan Super Class

Class Bola dan Class Lingkaran merupakan Sub class

Class Bola merupakan super class dari class Lingkaran

7.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Di bawah ini, manakah potongan kode yang tepat dalam menyatakan Class Singa sebagai sub class dari Class Hewan?

Class Hewan : Singa

Singa : Hewan

Class Singa : Hewan

Singa : Hewan

Class Singa : Class Hewan

Create a free account and access millions of resources

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?