Object-oriented Analysis And Design Book Quiz

30 Questions | Total Attempts: 6711

SettingsSettingsSettings
Object-oriented Analysis And Design Book Quiz - Quiz

Get ready for an exciting Object-oriented Analysis And Design Book Quiz. The quiz has medium as well as difficult-level questions. Try to answer all of these correctly. Have fun, and don't forget to put your score in the comment box.


Questions and Answers
  • 1. 
    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. 

      Diagram A

    • B. 

      Diagram B

    • C. 

      Diagram C

    • D. 

      Diagram D

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

      Diagram A

    • B. 

      Diagram B

    • C. 

      Diagram C

    • D. 

      Diagram D

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

      A44 and a66

    • B. 

      A44, a33, and a22

    • C. 

      A22 and a77

    • D. 

      A77 and a66

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

      It describes the behavior in many Use Cases.

    • B. 

      It describes the behavior in a single Use Case.

    • C. 

      It describes the behavior of a single object.

    • D. 

      It describes the behavior of several objects

  • 5. 
    What is an Object?
    • A. 

      A combination of data

    • B. 

      A combination of namespace

    • C. 

      A combination of the tasks to be performed

    • D. 

      A combination of Array

  • 6. 
    Which of the following is an example of encapsulation
    • A. 

      The steering wheel of the car

    • B. 

      Car

    • C. 

      Color of the car

    • D. 

      Music system of the car

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

      Coupling objects together more tightly

    • B. 

      Enabling a number of different operations to share the same name

    • C. 

      Making objects more dependent on one another

    • D. 

      Removing the barriers imposed by encapsulation.

  • 8. 
    What is the difference between Assignment and Initialization?
    • A. 

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

    • B. 

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

    • C. 

      Both are the same

    • D. 

      None of the above

  • 9. 
    What is inner class?
    • A. 

      Classes defined in other classes.

    • B. 

      Classes defined in methods.

    • C. 

      Both A & B

    • D. 

      Only A

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

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

    • B. 

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

    • C. 

      Both A & B

    • D. 

      Only A

  • 11. 
    The return data type of void means  
    • A. 

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

    • B. 

      No data type is returned.

    • C. 

      Void is not a valid data type.

    • D. 

      None of the above

  • 12. 
    Which statements are not correct about Objects? 
    • A. 

      An Object is an instance of a class.

    • B. 

      Objects can access both instance and static data.

    • C. 

      All classes extend the Object class.

    • D. 

      Objects do not permit encapsulation.

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

      Only those defined in the same class.

    • B. 

      Only static methods in the same class.

    • C. 

      Only instance methods in the same class.

    • D. 

      Only classes in the same package.

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

      An object instance that has only static methods.

    • B. 

      An object instance that has only primitive attributes.

    • C. 

      An object instance that contains other objects.

    • D. 

      An object that has only primitive attributes and instances methods.

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

      Method Overloading

    • B. 

      Method Invocating

    • C. 

      Method Overriding

    • D. 

      Method Labeling

  • 16. 
    -___________ is a blueprint or prototype that defines the variables and the methods common to all objects of a certain kind.  Select the best word to complete this sentence.
    • A. 

      Class

    • B. 

      Inheritance

    • C. 

      Polymorphism

    • D. 

      Aggregation

  • 17. 
    -(A/An) ____________ is a contract in the form of a collection of method and constant declarations. When a class implements (a/an) ____________, it promises to implement all of the methods declared in that ____________.  Select the best word to complete this sentence.
    • A. 

      Class

    • B. 

      Interface

    • C. 

      Object

    • D. 

      Exception

  • 18. 
    Object-Oriented Programming
    • A. 

      Makes programs more reliable.

    • B. 

      Simulates real life.

    • C. 

      Uses a lot of intimidating vocabulary, which is not as bad as it sounds.

    • D. 

      All of the above.

  • 19. 
    Object-Oriented Programming is characterized by using  
    • A. 

      Encapsulation

    • B. 

      Inheritance.

    • C. 

      Polymorphism.

    • D. 

      All of the above.

  • 20. 
    _____ is a method of implementation in which programs are organized as cooperative collections of objects, each of which represents an instance of some class and whose classes are all members of a hierarchy of classes united via inheritance relationships.
    • A. 

      Object-oriented design

    • B. 

      Object-oriented programming

    • C. 

      Object-oriented analysis

    • D. 

      Object-oriented database

  • 21. 
     Language is object-oriented if and only if it satisfies the following requirements:  
    • A. 

      It supports objects that are data abstractions with an interface of named operations and a hidden local state.

    • B. 

      Objects have an associated type [class].

    • C. 

      Types [classes] may inherit attributes from supertypes [superclasses].

    • D. 

      All of the above

  • 22. 
    ____ is a method of design encompassing the process of object-oriented decomposition and a notation for depicting both logical and physical as well as static and dynamic models of the system under design.
    • A. 

      Object-oriented design

    • B. 

      Object-oriented programming

    • C. 

      Object-oriented analysis

    • D. 

      Object-oriented database

  • 23. 
    ____ is a method of analysis that examines requirements from the perspective of the classes and objects found in the vocabulary of the problem domain.
    • A. 

      Object-oriented design

    • B. 

      Object-oriented programming

    • C. 

      Object-oriented analysis

    • D. 

      Object-oriented database

  • 24. 
    Major elements of the object model are
    • A. 

      Class, Object, Method, Interface

    • B. 

      Class, Property, Inheritance

    • C. 

      Abstraction, Encapsulation, Modularity, Hierarchy

    • D. 

      Abstraction, Class, Polymorphism

  • 25. 
    Minor elements of the object model are :
    • A. 

      Class,Object,Method,Interface

    • B. 

      Class,Property,Inheritance

    • C. 

      Typing, Concurrency, Persistence

    • D. 

      Abstraction, Class, Polymorphism

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.