Software Design Questions and Answers – Interaction Design Process and Interaction Modelling Heuristics

This set of Software Design Quiz focuses on “Interaction Design Process And Interaction Modelling Heuristics”.

1. Which of the following statement is true?
a) The process of generating, evaluating, and improving designs of components and interactions together as component and interaction co-design
b) An interaction realizing a product function or operation may be specified in a sequence diagram that ignores individuals at several removes from the primary individual in the interaction
c) Designers may need to model product functions and operations at several levels of abstraction in several sequence diagrams
d) All of the mentioned
View Answer

Answer: d
Explanation: All of the mentioned statements are true.

2. What is outside in design?
a) Interaction design works mainly from the computational goals mandated in requirements specifications, to the realization as interactions between cooperating program units
b) Many program interactions do not give rise to interesting or complicated program component interactions
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: a
Explanation: Interaction design works mainly from the computational goals mandated in requirements specifications (the outside of the program), to the realization as interactions between cooperating program units (the inside of the program)known as outside in design.

3. What are the general approaches to solving this problem?
a) Polling
b) Notification
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: c
Explanation: There are two general approaches to solving this problem Polling and Notification.
advertisement
advertisement

4. What is the controller?
a) It is a program component that makes decisions and directs other components
b) It is a way that decision making is distributed among program components
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: a
Explanation: A controller is a program component that makes decisions and directs other components.

5. Which among the following are broad control styles?
a) Centralized
b) Delegated
c) Dispersed
d) All of the mentioned
View Answer

Answer: d
Explanation: There are three broad control styles- Centralized, Delegated, Dispersed.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. Which of these is a Delegated control style?
a) In a program with such a control style, a few controllers make all significant decisions
b) A program with such a control style has decision making is distributed through the program
c) In a program with such a control style, decision making is spread widely throughout the program; it is hard to identify controllers in such programs
d) None of the mentioned
View Answer

Answer: b
Explanation: A program with delegated control style has decision making is distributed through the program.

7. Which of the following statement is true?
a) The delegated style corresponds to micro-management in which supervisors make every decision
b) The centralized style corresponds to the empowered teams model where in supervisors make major strategic decisions but leave it to teams of employees to decide how to implement the larger decisions
c) The dispersed style corresponds to a leaderless organization, such as occurs when a group of individuals get together for an impromptu activity
d) All of the mentioned
View Answer

Answer: c
Explanation: The dispersed style corresponds to a leaderless organization, such as occurs when a group of individuals get together for an imprompt activity.
advertisement

8. Which of the following statements are followed in delegated style?
a) The main advantage of a program with such a control style is that it is easy to and where decisions are being made
b) If the controllers are not too big and complex, it is easy to understand how decisions are made and to alter the decision-making process
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: d
Explanation: All of the mentioned statements are followed by centralized style and not delegated style.

9. Which of the following are the dangers faced by centralized style?
a) The controller can become too large and complex. If only a few components make all the decisions, and there are many decisions to be made, it stands to reason that the controllers will be large and complex units
b) Controllers may treat other components as data repositories, merely storing and retrieving data in
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: c
Explanation: All of the mentioned are the dangers faced by centralized styles.
advertisement

10. Which of the following are the heuristics to avoid bloated controllers?
a) Avoid interaction designs where most messages originate from a single component
b) Keep Components small
c) Make sure operational responsibilities are not all assigned to just a few components
d) Keep Components small & Make sure operational responsibilities are not all assigned to just a few components
View Answer

Answer: d
Explanation: The bloated controller heuristics are- Keep Components small and Make sure operational responsibilities are not all assigned to just a few components.

11. What are the advantages of delegated control?
a) Controllers are coupled to fewer components, and overall program coupling is decreased
b) Information is hidden better
c) It is too hard to understand the low of control
d) Information is hidden better, Controllers are coupled to fewer components, and overall program coupling is decreased
View Answer

Answer: d
Explanation: The advantages for control design are – Controllers are coupled to fewer components, and overall program coupling is decreased and Information is hidden better.

12. What are the disadvantages for dispersed control?
a) It is too hard to understand the low of control
b) When components are too finely divided, they tend not to be able to do anything on their own
c) It is difficult to hide information
d) All of the mentioned
View Answer

Answer: d
Explanation: All of the mentioned are the disadvantages for dispersed control.

13. Which among these is the heuristic for dispersed control?
a) Avoid interactions that require each component to send many messages
b) Have components delegate as many low-level tasks as possible
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: a
Explanation: Have components delegate as many low-level tasks as possible is the heuristic for delegate control.

14. An operation of an object obj should send messages only to which of the following entities?
a) The object obj;
b) The attributes of obj;
c) The arguments of the operation;
d) All of the mentioned
View Answer

Answer: d
Explanation: Law of dementor states An operation of an object obj should send messages only to the following entities- The object obj; The attributes of obj; The arguments of the operation.

15. Which of the following is interaction design heuristic?
a) Avoid interaction designs where most messages originate from a single component
b) Keep components small
c) Make sure operational responsibilities are not all assigned to just a few components
d) All of the mentioned
View Answer

Answer: d
Explanation: All of the mentioned are the heuristic for the interaction design.

Sanfoundry Global Education & Learning Series – Software Architecture and Design.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.