Help shape GoConqr. What should we add next?

Quiz

Unit 9 Architecture, patterns and reuse (Part 2)

Frans k 15 questions

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (15)

  1. 1The Model-View-Controller's classic use is in the design of applications that have [blank_start]graphical user interfaces[blank_end].
    1. Agraphical user interfaces
  2. 2Insert the components in the correct box.Image for question 2
    1. AModel
    2. BView
    3. CController
    4. DModel
    5. EView
    6. FController
    7. GController
    8. HModel
    9. IView
  3. 3[blank_start]Splits[blank_end] user interface interaction into three distinct roles: the [blank_start]model[blank_end] of the domain, the [blank_start]view[blank_end] representing that domain, and the [blank_start]controller[blank_end] of changes to the domain.
    1. ASplits
    2. Bmodel
    3. Cview
    4. Dcontroller
  4. 4Name the components of the architecture style this chart software uses.Image for question 4
    1. AController
    2. BView
    3. CModel
  5. 5Complete the missing labels.Image for question 5
    1. ASubject
    2. Bobserver
  6. 6Fill in the labels with correct Interface and concrete class name.Image for question 6
    1. Aobserver
    2. BConcreteObserver
  7. 7What is the purpose of the Singleton pattern?
    1. AIn many cases only a single instance of a class is required and
      allowing creation of more than one instance would compromise the design of the system.
    2. BAllows a client to use a class that has a different interface from
      the one the client is expecting.
    3. CSplits user interface interaction into three distinct roles: the model of the domain, the view representing that domain, and the controller of changes to the domain.
    4. DWhen partitioning a system into individual classes you want the
      coupling between them to be loose so you have the flexibility to vary them independently. But a mechanism is needed to ensure that when the state of an object changes related objects are updated to keep hem in step.
  8. 8The figure illustrates the application of the singleton pattern to the design of a media manager in a multimedia application. There should be only one instance of the manager, which is created by the MediaManager class itself the first time a client accesses the manager.

    This strategy of creation on demand is called [blank_start]lazy[blank_end] instantiation.
    Image for question 8
    1. Alazy
  9. 9Fill in the 2 blanks in note rectangle.Image for question 9
    1. Aonly
    2. Bunique
  10. 10Select all statements that apply to the Singleton Pattern. Select 3.Image for question 10
    1. AThe Singleton class provides no public operation for creating
      instances.
    2. BThe Singleton class defines a public operation getInstance() that
      lets clients access the unique instance of the class.
    3. CThe Singleton class is responsible for creating its own unique instance and no other class should be able to create an instance, so the create() operation is private
    4. DThe Singleton class lets the program call a create() method and create new instances.
    5. EThe Singleton instance is not publicly accessible.

Information

Description
Unit 9, from section 5.3 to end
Author
Frans k
Language
English
Views
9
Tags
software engineering
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What should we add next?