Recap Quiz Lecture 6

Recap Quiz Lecture 6

University

5 Qs

quiz-placeholder

Similar activities

Java quiz based on inheritance

Java quiz based on inheritance

University

10 Qs

AS - Quiz 5

AS - Quiz 5

University

10 Qs

Jaringan Komputer II SSM

Jaringan Komputer II SSM

University

10 Qs

G06 SS22

G06 SS22

University

5 Qs

G06 Quiz

G06 Quiz

University

5 Qs

Structural Design Patterns

Structural Design Patterns

University

10 Qs

Creational Design Patterns

Creational Design Patterns

University

10 Qs

CN-QUIZ3

CN-QUIZ3

University

10 Qs

Recap Quiz Lecture 6

Recap Quiz Lecture 6

Assessment

Quiz

Computers

University

Hard

Created by

Denitsa Assova

Used 2+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Reuse:

The goal of inheritance is only to achieve interface specification

White box reuse could be achieved using inheritance

Delegation reuses implemented functionality in the superclass

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Generalization vs. Specialization:

Generalization usually leads to model transformation

Refactoring means restructuring the UML model to fill in the gap between object design and system design

In Specialization Inheritance we first discover the subclass then the superclass

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Composite Pattern:

Composite pattern is used when we need to choose between multiple strategies during runtime

Composite pattern is a Creational pattern

The composite pattern lets a Client treat an individual class called Leaf and Compositions of Leaf classes uniformly

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Bridge Pattern:

The bridge pattern provides a bridge between the concrete implementation and the solution domain

The degenerated bridge pattern has no application domain taxonomy

The bridge pattern allows to bind the interface and its subclass before startup time of the system

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Proxy Pattern:

The proxy pattern allows to defer object creation and object initialization to the time the object is needed

During access control the proxy object acts as a stand-in for an object which is expensive to create

The implementation of request() in Proxy uses inheritance to access request() in RealSubject