Object-oriented Analysis And Design Book Quiz!

51 Questions | Total Attempts: 3574

SettingsSettingsSettings
Please wait...
Object-oriented Analysis And Design Book Quiz!

.


Questions and Answers
  • 1. 
    If you want to plan project activities such as developing new functionalities or test cases, which of the following OOAD artifacts is the most useful?
    • A. 

      (a) Sequence diagrams

    • B. 

      (b) Use cases

    • C. 

      (c) Domain model

    • D. 

      (d) Package diagrams

  • 2. 
    What is true about UML stereotypes?
    • A. 

      (a) A stereotype is used for extending the UML language.

    • B. 

      (b) A stereotyped class must be abstract.

    • C. 

      (c) The stereotype {frozen} indicates that the UML element cannot be changed.

    • D. 

      (d) UML Profiles can be stereotyped for backward compatibility.

  • 3. 
    Consider a beverage machine. If the actor is ‘customer’, and the scope is ‘machine’, what is most likely to be found in the main scenario of the use case ‘get a drink’?
    • A. 

      (a) - enter choice - if drink available then show price - put in coins - if paid enough then deliver drink

    • B. 

      (b) - customer enters choice - machine shows price - customer puts in coins - machine delivers drink

    • C. 

      (c) - enter choice - show price - put in coins - deliver drink

    • D. 

      (d) - ... - machine sends price to LCD display - customer put coins in slot - coin mechanism verifies amount and tells machine controller - machine controller activates boiler - ...

  • 4. 
    Consider the following situation: a company realizes projects; each project is executed by a team of employees. Which would be a suitable conceptual UML diagram?  
    • A. 

      (a) diagram A

    • B. 

      (b) diagram B

    • C. 

      (c) diagram C

    • D. 

      (d) diagram D

  • 5. 
    How do you express that some persons keep animals as pets?
    • A. 

      (a) diagram A

    • B. 

      (b) diagram B

    • C. 

      (c) diagram C

    • D. 

      (d) diagram D

  • 6. 
    Which diagram is NOT commonly used for illustrating use cases?
    • A. 

      (a) system sequence diagram

    • B. 

      (b) activity diagram

    • C. 

      (c) use case diagram

    • D. 

      (d) collaboration diagram

  • 7. 
    Which of these activities COULD occur simultaneously?
    • A. 

      [a] a44 and a66

    • B. 

      [b] a44, a33 and a22

    • C. 

      [c] a22 and a77

    • D. 

      [d] a77 and a66

  • 8. 
    What is true about a Sequence Diagram? [2 answers]
    • A. 

      [a] It describes the behavior in many Use Cases.

    • B. 

      [b] It describes the behavior in a single Use Case.

    • C. 

      [c] It describes the behavior of a single object.

    • D. 

      [d] It describes the behavior of several objects

  • 9. 
    What is a true statement about the following packages
    • A. 

      (a) If package C changes, package B must be inspected for necessary changes, and if there are any, package A may have to be adapted as well.

    • B. 

      (b) If package B changes, package A and package C must be inspected for necessary changes.

    • C. 

      (c) Packages should be designed so that a change in one package does not have an effect to other packages.

    • D. 

      (d) If package C changes, package A has to be examined (as well as B), because dependencies are transitive.

  • 10. 
    If you need to show the physical relationship between software components and the hardware in the delivered system, which diagram can you use
    • A. 

      (a) component diagram

    • B. 

      (b) deployment diagram

    • C. 

      (c) class diagram

    • D. 

      (d) network diagram

  • 11. 
    What is an Object?
    • A. 

      A combination of message and data

    • B. 

      A combination of namespace

    • C. 

      A combination of task to be performed

    • D. 

      A combination of Array

  • 12. 
    What is an Encapsulation?
    • A. 

      An action or occurrence such as click

    • B. 

      A package of one or more components together

    • C. 

      A set of statement that performs specific task

    • D. 

      A reference type variable

  • 13. 
    Which of the following is example of encapsulation
    • A. 

      Steering wheel of the car

    • B. 

      Car

    • C. 

      Color of the car

    • D. 

      Music system of the car

  • 14. 
    Which of the following are not in composition in " Car as a system"
    • A. 

      A. Car and seat covers

    • B. 

      B. Car and music system

    • C. 

      C. Car and color

    • D. 

      D. Car and engine

  • 15. 
    What is a class?
    • A. 

      An abstract representation of something with certain properties .

    • B. 

      B. A concrete representation of something with certain properties .

    • C. 

      C. An abstract representation of something with certain properties and abilities.

    • D. 

      D. A concrete representation of something with certain properties and abilities

  • 16. 
    Polymorphism reduces the effort required to extend an object system by
    • A. 

      A. Coupling objects together more tightly

    • B. 

      B. Enabling a number of different operations to share the same name

    • C. 

      C. Making objects more dependent on one another

    • D. 

      D. Removing the barriers imposed by encapsulation.

  • 17. 
    • A. 

      A. Assignment can be done as many times as desired whereas initialization can be done only once.

    • B. 

      B. Assignment can be done only once whereas initialization can be done as many times as desired.

    • C. 

      C. Both are same

    • D. 

      D. None of the above

  • 18. 
    What is inner class ?
    • A. 

      A. Classes defined in other classes

    • B. 

      B. Classes defined in methods

    • C. 

      C. Both A & B

    • D. 

      D. Only A

  • 19. 
    What is anonymous class?
    • A. 

      A. Class defined inside a method without a name

    • B. 

      B. It is instantiated and declared in the same place and cannot have explicit constructors

    • C. 

      C. Both A & B

    • D. 

      D. Only A

  • 20. 
    What are the advantages of inheritance? 
    • A. 

      A. It permits code reusability. Reusability saves time in program development.

    • B. 

      B. It encourages the reuse of proven and debugged high-quality software, thus reducing problem after a system becomes functional.

    • C. 

      C. Both A & B

    • D. 

      D. Only A

  • 21. 
    • A. 

      A void area in memory is returned so that you can populate it.

    • B. 

      B. No data type is returned.

    • C. 

      C. void is not a valid data type.

    • D. 

      D. None of the above

  • 22. 
    • A. 

      A. An Object is an instance of a class

    • B. 

      B. Objects can access both instance and static data

    • C. 

      C. All classes extend the Object class

    • D. 

      D. Objects do not permit encapsulation

  • 23. 
    If an attribute is private, which methods have access to it?
    • A. 

      A. Only those defined in the same class.

    • B. 

      B. Only static methods in the same class.

    • C. 

      C. Only instance methods in the same class.

    • D. 

      D. Only classes in the same package.

  • 24. 
    What is an aggregate object?
    • A. 

      A. An object instance that has only static methods.

    • B. 

      B. An object instance that has only primitive attributes.

    • C. 

      C. An object instance that contains other objects.

    • D. 

      D. An object that has only primitive attributes and instances methods.

  • 25. 
    A class can have many methods with the same name, as long as the number of parameters is different.  This is known as: 
    • A. 

      A. Method Overloading

    • B. 

      B. Method Invocating

    • C. 

      C. Method Overriding

    • D. 

      D. Method Labeling