MCQ | Pattern-Based Design in Software Engineering

Software Engineering | Pattern-Based Design MCQ: This section contains the multiple-choice questions on Pattern-Based Design in Software Engineering.
Submitted by IncludeHelp, on July 14, 2021

A software design pattern is a broad, reusable solution to a typically occurring problem in software design within a specific environment. It's not a finished design that can be turned into source or machine code right away.

Pattern-Based Design in Software Engineering MCQs

Here, you will find the MCQs on Pattern-Based Design in Software Engineering. The MCQs will enhance the learning and knowledge base with respect to Pattern-Based Design in Software Engineering.

Q1. Pattern-based design creates a ___ by finding a set of proven solutions to a clearly delineated set of problems.

  1. New application
  2. New system
  3. New network
  4. All of the mentioned above

Answer: A) New application

Explanation:

By identifying a set of proven answers to a clearly specified set of challenges, pattern-based design can be used to construct a new application.


Q2. Each problem and its solution are described by a design pattern.

  1. True
  2. False

Answer: A) True

Explanation:

Each problem and its solution are represented by a design pattern, which has been cataloged and reviewed by other software engineers who have met the problem and implemented the solution while creating other applications similar to the one that is being described by the pattern.


Q3. A design pattern provides you with a proven approach to one part of the problem to be solved.

  1. True
  2. False

Answer: A) True

Explanation:

A design pattern offers you with a tried-and-true technique to solving a specific element of the problem you're trying to address.


Q4. Amongst which of the following is / are the functionality of Pattern-based design?

  1. A software engineer examines each problem encountered for a new application  
  2. Attempts to find a relevant solution by searching one or more patterns repositories
  3. Both A and B
  4. None of the mentioned above

Answer: C) Both A and B

Explanation:

A software engineer analyses each problem that arises when developing a new application, and then attempts to identify an applicable solution by exploring one or more pattern repositories, as described above.


Q5. A design pattern can be characterized as "a three-part rule which expresses a relation between,

  1. A software engineer examines each problem encountered for a new application
  2. Attempts to find a relevant solution by searching one or more patterns repositories
  3. Both A and B
  4. None of the mentioned above

Answer: D) None of the mentioned above

Explanation:

A design pattern can be characterized as "a three-part rule which expresses a relation between a context, a problem and a solution. The ability to understand the context of an issue in software design enables the reader to comprehend the environment in which the problem exists and the type of solution that would be appropriate within that environment.


Q6. Amongst which of the following shows the Coplien characterization for an effective design pattern,

  1. It solves a problem and a proven concept
  2. The solution isn't obvious
  3. It describes a relationship and the pattern has a significant
  4. All of the mentioned above

Answer: D) All of the mentioned above

Explanation:

The Coplien characterization for an effective design pattern solves a problem and a proven concept, the solution isn’t obvious and describes a relationship and the pattern has a significant.


Q7. When software design patterns are considered, we strive to identify and ____.

  1. Document generative patterns
  2. System patterns
  3. Network system
  4. None of the mentioned above

Answer: A) Document generative patterns

Explanation:

When software design patterns are considered, we strive to identify and document generative patterns. We discover a pattern that represents an important and recurring characteristic of a system and that offers us with a method of incorporating that aspect into a system as part of its design.


Q8. Design patterns span a broad spectrum of ____.

  1. Data Encapsulation
  2. Abstraction and application
  3. System integration
  4. None of the mentioned above

Answer: B) Abstraction and application

Explanation:

Design patterns span a broad spectrum of abstraction and application.


Q9. Architectural patterns describe broad-based design problems that are solved using a ___ approach.

  1. Structural
  2. Unstructured
  3. Semi-structural
  4. All of the mentioned above

Answer: A) Structural

Explanation:

Architectural patterns are a way of describing broad-based design problems that are solved through the use of a structural methodology.


Q10. Data patterns describe recurring data-oriented problems and the data modeling solutions that can be used to solve them.

  1. True
  2. False

Answer: A) True

Explanation:

When it comes to recurrent data-oriented challenges and the data modeling solutions that may be employed to tackle them, data patterns serve as a guide.


Q11. Component patterns also referred to as design patterns address problems associated with the development of ____.

  1. Subsystems and components
  2. System integration
  3. System implementation
  4. All of the mentioned above

Answer: A) Subsystems and components

Explanation:

Component patterns also known as design patterns are used to solve challenges associated with the development of subsystems and components, the method in which they communicate with one another, and the placement of these components within a broader architecture.


Q12. Interface design patterns describe common ___ problems and their solution with a system of forces that includes the specific characteristics of end users.

  1. User interface
  2. Internal implementation details
  3. Network design
  4. None of the mentioned above

Answer: A) User interface

Explanation:

A system of forces that contains the individual characteristics of end users is used to solve common user interface problems. Interface design patterns outline how to solve common user interface problems with a system of forces.


Q13. ____ address a problem set that is encountered when building WebApps and often incorporates many of the other patterns categories just mentioned.

  1. Mobile App pattern
  2. WebApp patterns
  3. System App pattern
  4. None of the mentioned above

Answer: B) WebApp patterns

Explanation:

WebApp patterns are designed to handle a specific issue set that is encountered when developing WebApps, and they frequently contain elements from many of the other pattern types discussed above.


Q14. Mobile patterns describe commonly encountered problems when developing solutions for mobile platforms.

  1. True
  2. False

Answer: A) True

Explanation:

When building solutions for mobile platforms, mobile patterns explain difficulties that are frequently encountered. Idioms show how to implement all or part of a certain algorithm or data structure for a software component inside the context of a specific programming language at a lower degree of abstraction.


Q15. Creational patterns focus on the ___ of objects.

  1. Creation
  2. Composition
  3. Representation
  4. All of the mentioned above

Answer: D) All of the mentioned above

Explanation:

Creational patterns are concerned with the "creation, composition, and representation" of objects, and they provide techniques that make object instantiation inside a system easier, as well as "constraints on the type and quantity of objects that can be generated within a system."

Q16. Structural patterns focus on problems and solutions associated with how ___ are organized

  1. Classes and objects
  2. System elements
  3. Communication devices
  4. None of the mentioned above

Answer: A) Classes and objects

Explanation:

The difficulties and solutions related with how classes and objects are ordered and combined to construct a broader structure are the focus of structural patterns.


Q17. Behavioral patterns address problems associated with the assignment of responsibility between ___ is effected between objects.

  1. Objects and their communication
  2. Classes and their representation
  3. Pattern recognition
  4. None of the mentioned above

Answer: A) Objects and their communication

Explanation:

Structural patterns are concerned with the difficulties and solutions involved with the organization and integration of classes and objects in order to construct a broader structure.


Q18. Patterns themselves may not be sufficient to develop a complete design.

  1. True
  2. False

Answer: A) True

Explanation:

It is possible that patterns alone will not be adequate to generate a comprehensive design. In some circumstances, it may be required to offer an implementation-specific skeletal architecture, referred to as a framework, in order to facilitate the design process.


Q19. A reusable mini-architecture that provides the generic structure and behavior for a family of software abstractions,

  1. True
  2. False

Answer: A) True

Explanation:

"A reusable mini-architecture that offers the generic structure and behavior for a family of software abstractions, as well as a context that specifies their collaboration and use inside a certain domain," according to the definition.


Q20. Design patterns are more abstract than frameworks.

  1. True
  2. False

Answer: A) True

Explanation:

Frameworks are more concrete than design patterns. Code can encapsulate frameworks, but only samples of patterns can be encapsulated in code. Frameworks have the advantage of being able to be written down in programming languages and then executed and reused directly.





Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.