Вы находитесь на странице: 1из 26

quiz CS504 from 22-30

Question # 1 of 10:
It ensures that a class only has one instance and provides a global point of access to
it.

Singleton pattern (page # 142)


Observer pattern
Real pattern
None
Question # 2 of 10:
Static structural model shows the major system.....

Leaks
Components (page # 126)
Activities
Objectives
Question # 3 of 10:
Complex Expressions:

Make the code easy to modify


Make the code difficult to modify (page # 164)
Make the code easy to understand
Does not effect understandability

Question # 4 of 10:
N-tier architecture stems from the struggle to find a ------ between the fat-client ar-
chitecture and thin-client architecture.

Concurrency
Distribution point
Middle ground (page # 131)
Similarity
Question # 5 of 10:
MVC stands for:

Model View Controller (page # 140)


Modern View Centre
Model View Centre
Modern View Controller
Question # 6 of 10:
Class Variables should never be declared public. Public variables violate which of the
following:

Information Hiding
Encapsulation
Information Hiding & Encapsulation (page # 158)
None
Question # 7 of 10:
----- provides a unified interface to a set of interfaces in a sub-system.

Observer Pattern
Singleton Pattern
Façade Pattern (page # 143)
All of the above

Question # 8 of 10:
"Description of communicating objects and classes that are customized to solve a
general design problem in a particular context." is called ------

Design pattern (page # 137)


System pattern
System Design
None
Question # 9 of 10:
In the N-tier architecture, the idea is to enhance scalability and ------ by distributing
both the data and the application using multiple server machines.

Usability
Performance (page # 131)
Interoperability
None
Question # 10 of 10:
In case of a file servers, client requests selected records from a ….. and the server
transmits records to client over the network.

Local memory
Network
Database
File (page #129 )

quiz CS504 from 11-22

1. A change becomes ___ because of close presence of data and functions.

a. Localized ü

b. private

c. global

d. accessible

2. A complex system evolves from a ___.

a. Smaller system ü

b. medium system

c. bigger system

d. none

3. Coupling is a measure of ___ of a module or component.


a. Independent ü

b. dependent

c. closeness

d. all of given

4. Interaction diagrams depict the ___ behavior of the system.

a. Static

b. dynamic ü

c. active

d. none.

5. In sequence diagrams the time required by the receiver object to process the
message is denoted by an ___.

a. Activation box ü

b. simple box

c. arrow

d. none.

6. Identifying system features include ___.


a. Log important information

b. conduct business

c. analyze business results

d. all of the above ü

7. Establishing responsibilities for objects includes.

a. Generalization relationships

b. specialization relationships

c. identifying association relationships

d. all of the above ü

8. The object-oriented approach:

a. improves the reusability of codes ü

b. makes objects less independent

c. increases testing time

d. complicates mapping of a system model to an implementation model

9. Identifying whole-part structures (aggregations) means what are my ___?

a. Components ü
b. structures

c. objects

d. classes

10. An object or class may further be classified on the basis of:

a. behavior driven attributes

b. data driven attributes

c. responsibility driven attributes

d. all of the given ü

11. Which one is not the purpose of interaction diagrams?

a. Model interactions between objects

b. assist in understanding how a system (a use case) actually works

c. identify responsibilities/operations and assign them to classes

d. identify dependencies among objects ü

12. Which one is not a type of messages which sequence diagrams depict?

a. Synchronous
b. asynchronous

c. create

d. update ü

13. The first step in OOA process model is:

a. build an object-relationship model ü

b. define collaboration between objects

c. elicit customer requirements

d. select a representation language

14. The process of defining attributes is called:

a. what I know? ü

b. Who I know?

c. Whom I know?

d. none

15. ___ gives OO the ability to handle essential complexity.

a. Decentralization ü
b. centralization

c. both

d. none

16. In sequence diagram events are organized in a ___ time line.

a. Vertical ü

b. horizontal

c. both

d. none

17. ___ is an extremely powerful technique for dealing with complexity.

a. Aggregation

b. abstraction ü

c. inheritance

d. association

18. ___ is a technique in which we construct a model of an entity based upon its es-
sential characteristics and ignore the inessential details.

a. Inheritance
b. polymorphism

c. aggregation

d. abstraction ü

19. UML is a language for ___

a. high level programming

b. low level programming

c. modeling and design ü

d. creating diagrams only

20. A ___ relationship indicates that one entity is composed of one or more parts
which are themselves instances of that or another entity.

a. Inheritance

b. whole-part ü

c. generalization

d. specialization

21. “a car is made up of a body, three or four wheels, a steering mechanism, a


breaking mechanism and a power engine” this statement is example of:

a. whole-part relationship ü
b. inheritance

c. specialization

d. generalization

22. Whole part structure is also called___.

a. Generalization

b. aggregation ü

c. specialization

d. association

23. The modules interacting with each other through message passing have ___ be-
tween them.

a. Low cohesion

b. high cohesion

c. low coupling ü

d. high coupling

24. In case of action-oriented approach, data is decomposed according to:

a. object requirements
b. functionality requirements ü

c. corresponding domain model

25. A class will be cohesive if:

a. class does not implement complex interfaces class

b. does not have complex methods

c. if most of the methods do not use most of the data members most of the time

d. if most of the methods use most of the data members most of the time ü

26. A cohesive class is one which emphasizes on __ unit of functionality

a. single ü

b. multiple

c. static

d. none

27. In case of ___, intra component linkages are stronger while inter component link-
ages are weak.

a. High cohesion

b. low coupling ü
c. low cohesion

d. high coupling

28. In case of ___, module boundaries are not well defined.

a. High cohesion

b. low coupling

c. low cohesion

d. high coupling ü

29. Strong cohesion implies that:

a. all parts of a component have a close logical relationship with each other ü

b. all parts of a component do not have a close logical relationship with each other

c. component is dynamic in nature

d. component is static in nature

30. In OOD which layer contains the details that enable each object to communicate
with its collaborators.

a. Subsystem

b. message ü
c. class and object

d. responsibility

31. An object model encompasses the principle(s) of:

a. abstraction

b. encapsulation

c. hierarchy or inheritance

d. all of the given ü

32. Identify the True statement:

a. normally object-oriented design is more maintainable than functional oriented ü

b. software with functional oriented design does not fulfill non-functional require-
ments

c. object oriented design cannot implement “separation of concerns” strategy

d. function oriented design does not lead to an efficient product

33. Software design discusses ___ aspect of software development.

a. What

b. how ü
c. who

d. when

34. Identify the TRUE statement(s):

a. an attribute that may have a number of values should be replaced by a new class
and an object connection

b. an attribute that varies over time. E.g. price of an item, should be replaced by an
additional class with an effective date and value

c. replace “yes/no” type attributes with “status” type attributes for flexibility

d. All of the given ü

35. The key objective(s) of OOD process should achieve the following:

a. the class as far as possible should be independent, but could be dependent on only
a few classes

b. interaction between two classes should be explicit

c. class hierarchy should be built on specialization of higher class

d. All of the given ü

36. ___ has become a standard notation for object-oriented system modeling.

a. UML ü
b. C++

c. OCL

d. None

37. Normally a system will be easier to modify if its modules have:

a. low coupling and high cohesion ü

b. low coupling and low cohesion

c. high coupling and high cohesion

d. high coupling and low cohesion

38. In sequence diagram, the boxes denote:

a. Objects (or classes) ü

b. messages, sent from one object to other

c. life-time of objects

d. none

39. In object-oriented design the structure of a system revolves around.

a. Objects ü

b. methods
c. properties

d. none

40. Sequence diagrams provide:

a. time-based view ü

b. organization-based view

c. both

d. none

41. A “register” in “point of sale system” is an example of:

a. actor

b. participant

c. tangible thing ü

d. transaction

42. Modules with low coupling and high cohesion can be treated and analyzed as:

a. white boxes

b. black boxes ü
c. gray boxes

43. In the functional design, the structure of the system revolves around:

a. objects

b. properties

c. functions ü

d. all

44. In sequence diagram objects are organized in a ___ line.

a. Vertical

b. horizontal ü

c. both

d. none

45. When a class gets physical existence in computer memory, it is called:

a. parent class

b. polymorphism

c. static object
d. Object ü

46. In “point of sale system” the term “payment” represents:

a. actor

b. participant

c. transaction ü

d. container

47. Consider the following piece of code: public class square extends shape {// some
code}. The above code is an example of:

a. part-whole relationship

b. generalization/specialization ü

c. data sharing

d. data encapsulation

48. ___ relationship is concerned with classes not with class instantiates.

a. Association

b. inheritance ü

c. aggregation
d. composition

49. Which of the following is Not among one of the four layers of the Object-oriented
design pyramid?

a. The subsystem layer

b. the class and object layer

c. the abstract layer ü

d. the message layer

50. While establishing the services for an object, the following fundamental ques-
tions should be asked:

a. why does the system need this object anyway?

b. What useful questions can it answer?

c. What useful action can it perform?

d. All of the given ü

51. An object model of a system captures the ___ structure of a system.

a. Static ü

b. dynamic

c. iterative
d. hierarchal

52. Transactions are the ___ that must be remembered through time.

a. Events ü

b. actions

c. triggers

d. methods

53. When two components of a system are using the same global data area, they are
related as:

a. data coupling

b. content coupling ü

c. common coupling

d. external coupling

54. Class responsibilities are defined by:

a. its attribute only

b. its collaborators

c. its operations only


d. both its attributes and operations ü

55. In Abbot’s textual analysis technique, the proper noun (e.g. Mehdi Hassan) repre-
sents:

a. class

b. instance ü

c. inheritance

d. aggregation

56. To help separate an object’s external behavior from its implementation, the
technique used is called ___.

a. Generalization

b. association

c. composition

d. abstraction ü

57. the design process usually involves:

a. developing a number of different models

b. looking at the system from different angles

c. describing the system at various levels of abstraction


d. all of the given ü

58. ___ analysis educates the analyst on business domain complexity and shows a
way to deal with it.

a. Domain ü

b. Use case

c. object collaboration

d. none

59. Which of the following strategy/strategies lead(s) to a good software design:

a. separation of concerns

b. modularity

c. divide-and-conquer

d. all of the given ü

60. Selecting objects (in a domain) include:

a. actors

b. participants

c. places
d. all of the given ü

61. A structure is a manner of an organization which expresses a ___ strong organ-


ization within the problem domain.

a. Semantically ü

b. syntactically

c. graphically

d. none

62. Specialization means:

a. calling the same method with object of child object

b. hiding the data

c. creating new subclasses from an existing class ü

d. none

63. In a “railway ticket reservation system” the roles such as enquiry, reservation
and ticketing and cancellation are to be performed by the user called:

a. passenger ü

b. system analyst
c. system developer

d. system designer

64. Defining the services of an object means:

a. what it does? ü

b. What it knows?

c. Who knows it?

d. Whom it knows?

65. Software objects interact and communicate with each other using ___.

a. Whole-part relation

b. generalization/specialization relation

c. messages ü

d. none

66. In ___ relationship, a class shares the structure and behavior defined in another
class.

a. Aggregation

b. composition
c. inheritance ü

d. association

67. Once you define “Employee” as an object for pay-roll application ___

a. it cannot be used for income tax, bonus, commission or any HR application ü

b. it can be used for income tax, bonus, commission or any HR application

c. it can only provide read-only properties

d. none

68. The three most important characteristics of an object are:

a. identity

b. state

c. behavior

d. all of the given ü

69. The most important and critical stage in the object-oriented design is the appro-
priate classification of ___

a. functions

b. methods
c. objects ü

d. relationships

70. The intent of OOA is to define:

a. all classes

b. relationships among classes

c. behavior of classes

d. all of the given ü

Вам также может понравиться