Sunday, 27 September 2015

Object Oriented Analysis and Design (S2-14_SSZG514) Quiz 3

1.Which of the following can be tested

Select one or more:
a.Only Classes
b.Invalid inputs
c.Valid inputs
d.Events

Answer: b,c,d

2.What are GRASP patterns used for

Select one:
a.Implementing User interaction using a UI
b.Assigning Responsibility and Designing Interactions between classes
c.None of the above
d.Implementing the Input and Output interface Classes

Answer: b

3.What kind of interactions are best between the GUI and other classes

Select one or more:
a. A control class for every one of the UI elements
b. A control class for each usecase implementation
c. A Facade class which controls all interactions between the Domain classes and UI
d.All of the above

Answer: b,c

4.How does object A have visibility to another object B

Select one:
a.Object A has a reference to Object B
b.Object A and B are created for the same Usecase
c.Object A and B are created from the same class
d.None of the above

Answer: A

5.What are the main aspects of fulfilling Responsibility by a Class in Responsibility Driven Design

Select one:
a.Which other Classes the Class should be aware of.
b.What interactions must the Class have with other Classes.
c.What information must the Class know and what actions must a class do.
d.None of the above

Answer: c

6.What are the four common types of visibility between objects

Select one:

a.Attribute, Parameter, Local and Global visibility
b.Attribute, Parameter, Use case and User Interface
c. Use case, interface, subclasses  and User Interface
d.Parameter, interactions, subclasses  and User Interface

Answer:a

7.What are the main advantages of Low Coupling principle

Select one:

a.Low dependency,Low Bottlenecks, and increased reuse
b.Low dependency,Low change impact, and increased reuse
c.None of the above
d.Less number of messages,Low change impact, and increased reuse

Answer: b

8.How does OO testing differs from Procedural code testing

Select one:
a.None of the above
b.There are no variables to be tested
c.Unit testing is Class testing
d.There are no methods to be tested

Answer:c

9.Where does testing begin 

Select one:
a.Just before the final deployment
b.After the Design is final
c.None of the above
d.With the Object Oriented Analysis models

Answer: d

10.What are the four essential elements of a Design pattern

Select one:
a.Name, Problem, Solution and Consequences
b. Problem, Solution, Advantages and Disadvantages
c. Name, Problem, Solution and Linked patterns
d.Name, Solution, Advantages and Disadvantages

Answer:a

11.A Class with Low Cohesion has the following properties with respect to comprehension, maintaining and structure.

Select one:
a.Hard to comprehend, Easy to maintain, Robust and not affected by change
b.Hard to comprehend,  Easy to reuse,Easy to maintain and Delicate and constantly affected by change
c.Hard to reuse,Hard to maintain and  Not affected by change
d.Hard to comprehend, Hard to reuse,Hard to maintain and Delicate and constantly affected by change

Answer:d

12.What is not a Creator Principle about: Class A should create an Object of Class B

Select one:
a.Class A is a superclass of Class B
b.Class A aggregates Objects of Class B
c.Class A has initialization data for Objects of Class B
d.Class A aggregates Objects of Class B

Answer: a

13.Which of the properties are true for Test Driven Development 

Select one or more:
a.Don't write production code without first writing a failing unit test
b.Don't write more code than is sufficient to pass the test
c.None of the above
d.Don't write more of a test than is sufficient to fail

Answer:a,b,d

14. Which of the following  are true for Local Visibility from A to B

Select one or more:
a.B is a subclass of A
b.None of the above
c.Create a new local instance and assign it to a local variable
d.Assign the return object from a method invocation to a local variable

Answer:c,d

15.Parameter visibility is usually converted into

Select one:

a.Attribute visibility
b.Global visibility
c.None of the above
d. Local Visibility

Answer: a

No comments:

Post a Comment