OOP Review

OOP Review

University

10 Qs

quiz-placeholder

Similar activities

Quiz 2 - Web Frameworks part 1

Quiz 2 - Web Frameworks part 1

University

9 Qs

Basics of Java

Basics of Java

University

15 Qs

java2/67

java2/67

12th Grade - University

10 Qs

TEB2132 C++ Fundamentals Quiz

TEB2132 C++ Fundamentals Quiz

University

15 Qs

Java_MCQ_3

Java_MCQ_3

University

15 Qs

oops bootcamp

oops bootcamp

University

10 Qs

C++ Structuri repetitive

C++ Structuri repetitive

8th Grade - University

7 Qs

UML and System Modeling Quiz

UML and System Modeling Quiz

12th Grade - University

15 Qs

OOP Review

OOP Review

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Alvin Tjondrowiguno

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Dari beberapa pilihan di bawah ini, mana saja yang bisa dibuat menjadi instance / object?

Class biasa dan Anonymous class

Abstract class dan Interface

Abstract class dan Class biasa

Interface dan Anonymous class

2.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Media Image

Perhatikan code berikut ini. Pilihlah implementasi fungsi main() yang menghasilkan output "Print B" ketika dijalankan!

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Mana relasi antar class yang tidak bisa dibuat?

Interface extends Interface

AbstractClass extends AbstractClass

AbstractClass implements Interface

Interface extends AbstractClass

4.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Media Image

Untuk membuat Class Point sebagai Composition dari Class Circle seperti tampak di Class Diagram dibawah, maka Constructor variabel center harus berisi ...

Point(x, y)

new Point(x, y)

new Circle(x, y)

Point(center)

5.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Media Image

Yang akan menghasilkan error jika ditambahkan dalam program dibawah ini adalah ...

public double Produksi(double x, double y, String z) { ..... }

public int Produksi(int x, int y, int z) { ..... }

public double Produksi(double x, double y) { ..... }

public String Produksi(double x, double y, double z) { ..... }

6.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Media Image

Perhatikan coding dibawah ini. Ada 2 Class: Class Page dan Class Book. Relasi mana yang paling cocok menggambarkan hubungan ke dua kelas diatas?

Page IS-A Book

Page HAS-A Book

Book HAS-A Page

Book IS-A Page

7.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Agar variabel dalam sebuah Class dapat diakses hanya oleh class tersebut dan semua class lain dalam package yang sama, maka pada deklarasi variabel kita tambahkan modifier:

Private

Public

Protected

Tanpa modifier

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?