Software Design Questions and Answers – Layered Architectures

This set of Software Design Multiple Choice Questions & Answers (MCQs) focuses on “Layered Architectures”.

1. Which of the following is incorrect?
a) A Layered-style program is divided into an array of modules or layers
b) Each layer provides services to the layer “below” and makes use of services provided by the layer “above”
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: b
Explanation: Each layer provides services to the layer “above” and makes use of services provided by the layer “below”.

2. Which of the following is correct?
a) The dynamic structure of the Layered style is to partition software units into modular layers
b) The static structure of the Layered style is nothing more than a constraint on interactions between layers
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: d
Explanation: The static structure of the Layered style is to partition software units into modular layers whereas The dynamic structure of the Layered style is nothing more than a constraint on interactions between layers.

3. What is Relaxed Layered Style?
a) Each layer can be constrained to use only the layer directly below it
b) Sometimes this constraint is relaxed slightly to allow each layer to use all the layers below it
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: b
Explanation: Each layer can be constrained to use only the layer directly below it—this is a Strict Layered style whereas Sometimes this constraint is relaxed slightly to allow each layer to use all the layers below it—this is a Relaxed Layered style.
advertisement
advertisement

4. Which of the following is correct?
a) Module A uses Module B if a correct version of B must be present for A to execute correctly
b) Module A calls (or invokes ) module B if B triggers execution of A
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: a
Explanation: Module A uses Module B if a correct version of B must be present for A to execute correctly and Module A calls (or invokes ) module B if A triggers execution of B.

5. Which of the following is true with respect to layered architecture?
a) Each layer is allowed to depend on the layer above it being present and correct
b) A layer may call other layers above and below it, as long as it uses them
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: d
Explanation: Each layer is allowed to depend on the layer below it being present and correct. A layer may call other layers above and below it, as long as it does not use them.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. What is Onion diagram illustrates?
a) It illustrates the connection between the layers in communications protocols, such as the International Standards Organization Open Systems Interconnection (ISO OSI) model,or the layers in user interface and windowing systems, such as the X Window System
b) It often illustrates operating system layers, with the kernel at the core
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: d
Explanation: Onion diagram illustrates operating system layers, with the kernel at the core.

7. In particular, layers have which of the following characteristics?
a) Layers are by definition highly cohesive, thus satisfying the Principle of Cohesion
b) Layers doesn’t support information hiding
c) Layers are constrained to use only above layers
d) All of the mentioned
View Answer

Answer: a
Explanation: Layers are by definition highly cohesive, thus satisfying the Principle of Cohesion. Layers support information hiding Layers are constrained to use only lower layers.
advertisement

8. Which of the following is incorrect?
a) Layered architectures are highly changeable, so this pattern can be used when changeability is an important quality attribute
b) Layered-style programs are easy to modify because changes can be made to a layer independently of the rest of the program
c) All of the mentioned
d) None of the mentioned
View Answer

Answer: d
Explanation: All of the mentioned are correct.

9. What are the drawbacks for Layers?
a) It is often necessary to pass data through many layers, which can slow performance significantly
b) Layers support information hiding
c) Multi-layered programs can be hard to debug because operations tend to be implemented through a series of calls across layers
d) None of the mentioned
View Answer

Answer: c
Explanation: Layers support information hiding is an advantage and not a drawback.
advertisement

10. Which of the following is correct?
a) Layers are not strongly coupled to the layers above them
b) Each layer is strongly coupled only to the layer immediately below it
c) Overall Layered-style architectures are loosely coupled
d) All of the mentioned
View Answer

Answer: d
Explanation: Layers are not strongly coupled to the layers above them. If a program uses theStrict Layered style, then each layer is strongly coupled only to the layer immediately below it. As a result, overall Layered-style architectures are loosely coupled.

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.