Docsity

Software Architecture and Design Patterns, Exams of Health sciences

Toggle sidebar
bg1
CEN 4020 Exam 2 Questions with 100% Correct Answers-
Graded A+.
The Model-View-Controller architecture defines responsibilities for each of the three
components. Match the responsibilities to their component: - Correct answer Question 1
Maps user actions to model updates
Controller
View
Model - Correct answer Controller
Renders mode
Controller
View
Mode - Correct answer View
Encapsulates application state
Controller
View
Mode - Correct answer Model
Selects view
Controller
View
Mode - Correct answer Controller
Requests model updates
Controller
View
Model - Correct answer B.
View
Notifies view of state changes
Controller
View
Mode - Correct answer Model
Sends user events to controller
Controller
View
Mode - Correct answer View
When discussing functional and non-functional requirements, individual components
implement [what] and the system architecture mainly influences [what]. - Correct answer
below
System architecture
P a g e 1 | 18
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Software Architecture and Design Patterns and more Exams Health sciences in PDF only on Docsity!

CEN 4020 Exam 2 Questions with 100% Correct Answers-

Graded A+.

The Model-View-Controller architecture defines responsibilities for each of the three components. Match the responsibilities to their component: - Correct answer Question 1 Maps user actions to model updates Controller View Model - Correct answer Controller Renders mode Controller View Mode - Correct answer View Encapsulates application state Controller View Mode - Correct answer Model Selects view Controller View Mode - Correct answer Controller Requests model updates Controller View Model - Correct answer B. View Notifies view of state changes Controller View Mode - Correct answer Model Sends user events to controller Controller View Mode - Correct answer View When discussing functional and non-functional requirements, individual components implement [what] and the system architecture mainly influences [what]. - Correct answer below System architecture

Functional system requirements Non-functional requirements - Correct answer. Non-functional requirements Individual components Functional system requirements Non-functional requirements - Correct answer functional system requirements What are the fundamental architectural views proposed in Krutchen? S 4+1 model? - Correct answer a physical view that shows the distribution of software on the system hardware A process view that shows the interacting processes in the system A logical view that shows the key abstractions of the system A development view that shows how the system is decomposed for development What are transaction-processing applications? - Correct answer Database-centered applications that process user requests for information and update the information in the database They are organized so that transactions cannot interfere with each other and the integrity of the database is maintained What are the principal functions of the 4 layers in a generic information system architecture?

  • Correct answer User communications, authentication, and authorization Database and transaction management User interface Information retrieval and modification Match these non-functional requirements up with the best architectural approach to realizing their full potential. - Correct answer below Performance The architecture should be designed to localize critical operations within a small number of components deployed on the same computer A layered structure should be used, with the most critical assets protected in the innermost layers The architecture should be designed so that safety-related operations are co-located in a single component or in a small number of components. The architecture should be designed to include redundant components The system architecture should be designed using fine-grain, self-contained components that may readily be changed - Correct answer the architecture should be designed to localize critical operations within a small number of components deployed on the same computer. Security

The architecture should be designed so that safety-related operations are co-located in a single component or in a small number of components. The architecture should be designed to include redundant components The system architecture should be designed using fine-grain, self-contained components that may readily be changed - Correct answer the system architecture should be designed using fine-grain, self-contained components that may readily be changed. What are the most important advantages of a client-server architecture? - Correct answer it is easy to add a new server or upgrade existing servers without disrupting the system This is a distributed architecture so that it is possible to provide services on different computer Match these components of a language processing system to their definition: - Correct answer below Lexical Analyzer Takes input language tokens and converts them into an internal form Uses information from the syntax tree and the symbol table to check the semantic correctness of the input language text. Holds information about the names of entities used in the text that is being translated Checks the syntax of the language being translated. An internal structure representing the program being compiled. Walks the syntax tree and generates abstract machine code. - Correct answer Takes input language tokens and converts them into an internal form Syntax Analyzer Takes input language tokens and converts them into an internal form Uses information from the syntax tree and the symbol table to check the semantic correctness of the input language text. Holds information about the names of entities used in the text that is being translated Checks the syntax of the language being translated. An internal structure representing the program being compiled. Walks the syntax tree and generates abstract machine code. - Correct answer Checks the syntax of the language being translated. Semantic Analyzer Takes input language tokens and converts them into an internal form Uses information from the syntax tree and the symbol table to check the semantic correctness of the input language text.

Holds information about the names of entities used in the text that is being translated Checks the syntax of the language being translated. An internal structure representing the program being compiled. Walks the syntax tree and generates abstract machine code. - Correct answer Uses information from the syntax tree and the symbol table to check the semantic correctness of the input language text. Symbol Table Takes input language tokens and converts them into an internal form Uses information from the syntax tree and the symbol table to check the semantic correctness of the input language text. Holds information about the names of entities used in the text that is being translated Checks the syntax of the language being translated. An internal structure representing the program being compiled. Walks the syntax tree and generates abstract machine code. - Correct answer Holds information about the names of entities used in the text that is being translated Syntax Tree Takes input language tokens and converts them into an internal form Uses information from the syntax tree and the symbol table to check the semantic correctness of the input language text. Holds information about the names of entities used in the text that is being translated Checks the syntax of the language being translated. An internal structure representing the program being compiled. Walks the syntax tree and generates abstract machine code. - Correct answer an internal structure representing the program being compiled. Code Generator Takes input language tokens and converts them into an internal form Uses information from the syntax tree and the symbol table to check the semantic correctness of the input language text. Holds information about the names of entities used in the text that is being translated Checks the syntax of the language being translated. An internal structure representing the program being compiled. Walks the syntax tree and generates abstract machine code. - Correct answer Walks the syntax tree and generates abstract machine code.

Related functionality is associated with a layer of the system. Each layer services the one above it. - Correct answer all data in a system is managed centrally and is accessible to all system components. Layered architecture The system is presented as a set of services, with each service delivered by a separate server Processing of the data in a system is organized so that each processing component is discrete and carries out one type of data transformation Separates presentation and interaction from the system data. All data in a system is managed centrally and is accessible to all system components. Related functionality is associated with a layer of the system. Each layer services the one above it. - Correct answer Related functionality is associated with a layer of the system. Each layer services the one above it. MVC The system is presented as a set of services, with each service delivered by a separate server Processing of the data in a system is organized so that each processing component is discrete and carries out one type of data transformation Separates presentation and interaction from the system data. All data in a system is managed centrally and is accessible to all system components. Related functionality is associated with a layer of the system. Each layer services the one above it. - Correct answer Separates presentation and interaction from the system data. Which concepts describe the idea of open-source development - Correct answer when high- quality open source options are available, you can save time and money by using these systems Any contributor to an open source development may fix bugs and add new features to a system The source code of a software system is made publicly available and volunteers participate in the further development of the system What are the principal aims of software configuration management? - Correct answer to support system integration so that all developers can access the project code and documents in a controlled way Find out what components have been changed and compile and link components to create a system What do you understand by the system context and interaction model? - Correct answer the system context is a static model of the other systems in the environment of the system being designed

An interaction model is a dynamic model that describes how the system being designed interacts with its environment Click on the checkmark pointing to the Anemometer's 'Test' attribute. - Correct answer Quiz 7 Why is it important to specify the interfaces of components that are being developed by a software engineering team? - Correct answer Interfaces have to be specified so that objects and sub-systems can be designed in parallel Once an interface has been specified, the developers of other parts of the system may assume that the interface will be implemented What are the levels at which software reuse is possible? - Correct answer the abstraction level The object level The component level The system level What are the standard tools in a software development platform? - Correct answer Configuration management tools Project support tools for code control Testing tools that can automatically run program tests A language debugger An integrated compiler and syntax-directed editing systems Graphical editing tools for UML models What do Gamma et al. suggest are the essential elements of a design pattern? - Correct answer a meaningful name A statement of the consequences of applying the pattern. A solution description, which shows the components in the solution and their relationships A description of the problem and when the pattern can be applied Which selections best describe approaches that may be used to identify object classes? - Correct answer Identify tangible things in the application domain Grammatical analysis identifying nouns and verbs Use scenario-based analysis What are the 5 key activities in an object-oriented design process? - Correct answer Specify object interfaces Understand and define the context and use of the system. Develop design models Design the system architecture Identify the principal objects in the system

Ensures that the software meets the customer's expectations. Validation Verification - Correct answer Validation Process of checking that the software meets its stated functional and non-functional requirements. .Validation Verification - Correct answer Verification Checks that the software being developed meets its specification and delivers the functionality expected by the people paying for it. Validation Verification - Correct answer V & V Establishes confidence that the software is "fit for purpose Validation Verification - Correct answer V & V There are 3 stages of development testing. Match the descriptions to the stage they belong:

  • Correct answer below Individual object classes are tested. Unit testing System testing Component testing - Correct answer Unit testing Several individual units are integrated and tested together. Unit testing System testing Component testing - Correct answer Component testing Some or all of the components in a system are integrated and tested as a whole. Unit testing System testing Component testing - Correct answer System testing Focuses on testing component interactions Unit testing System testing Component testing - Correct answer System testing Match these different types of interfaces with their description. - Correct answer next These are interfaces in which data or sometimes function references are passed from one component to another. Shared memory interface

Procedural interfaces Parameter interfaces Message passing interfaces Parameter interfaces - Correct answer Parameter interfaces These are interfaces in which a block of memory is shared between components. Shared memory interface Procedural interfaces Parameter interfaces Message passing interfaces Parameter interfaces - Correct answer Shared memory interface These are interfaces in which one component encapsulates a set of procedures that can be called by other components. Shared memory interface Procedural interfaces Parameter interfaces Message passing interfaces Parameter interfaces - Correct answer Procedural interfaces These are interfaces in which one component requests a service from another component by passing a message to it. Shared memory interface Procedural interfaces Parameter interfaces Message passing interfaces Parameter interfaces - Correct answer Message passing interfaces This type of interface is used in embedded system where sensors create data that is retrieved and processed by other components. Shared memory interface Procedural interfaces Parameter interfaces Message passing interfaces Parameter interfaces - Correct answer Shared memory interface Methods in an object have this type of interface. Shared memory interface Procedural interfaces Parameter interfaces Message passing interfaces Parameter interfaces - Correct answer Parameter interfaces Client-server systems use this interface Shared memory interface Procedural interfaces Parameter interfaces Message passing interfaces Parameter interfaces - Correct answer Message passing interfaces

System designers and programmers are likely to be involved in this type of testing User testing Release testing Development testing - Correct answer Development testing The aim of this type of testing is to check that the system meets the requirements of the system stakeholders. User testing Release testing Development testing - Correct answer Release testing Acceptance testing belongs in this (??) category. User testing Release testing Development testing - Correct answer User testing Match these test case choosing strategies with their description. - Correct answer Next Using testing guidelines that reflect previous experience of the kinds of errors that programmers often make when developing components Partition testing Guideline-based testing - Correct answer Guideline-based testing Identifying groups of inputs that have common characteristics and should processed in the same way. Partition testing Guideline-based testing - Correct answer Partition testing What occurs during the evolution phase of a software product? - Correct answer Significant changes to the software architecture and functionality may be made. Why it is usually more expensive to add functionality after a system is in operation? - Correct answer the maintenance contract is usually separate from the development contract. So why should a development team write maintainable software? As changes are made to programs, the structure tends to degrade which makes them harder to understand. Maintenance staff are usually less experienced with the application domain. Teams are usually broken up after a system is complete. The process of making improvements to a program to slow down degradation through change is called: - Correct answer refactoring Why might it sometimes be necessary to bypass the normal change management system and make urgent changes to a system? - Correct answer to cope with unexpected business change To repair a serious system fault

To change the system to cope with unexpected changes in the systems operating environment Match these software design problems with their solution. - Correct answer c This superfluous code may simply be removed. Data clumping Speculative generality Switch statements Duplicate code Long methods - Correct answer Speculative generality Combine duplicate logic into a single method that is called as required. Data clumping Speculative generality Switch statements Duplicate code Long methods - Correct answer Duplicate code Use polymorphism to achieve the same thing. Data clumping Speculative generality Switch statements Duplicate code Long methods - Correct answer Switch statements Encapsulate the data within an object. Data clumping Speculative generality Switch statements Duplicate code Long methods - Correct answer Data clumping Redesign these into many small method Data clumping Speculative generality Switch statements Duplicate code Long methods - Correct answer Long methods What process metrics might be used to assess maintainability? - Correct answer Average time required for impact analysis Number of requests for corrective maintenance Average time taken to implement a change request Number of outstanding change requests Match the different types of software maintenance to its description.

Match these legacy system maintenance strategies to their justification for using them. Reengineer the system Continue with regular maintenance Scrap the system Replace all or parts of the system with new systems - Correct answer Question The system quality is degraded by changes and new changes are being proposed Reengineer the system Continue with regular maintenance Scrap the system Replace all or parts of the system with new systems - Correct answer reengineer the system The system isn't making an effective contribution to business processes. Reengineer the system Continue with regular maintenance Scrap the system Replace all or parts of the system with new systems - Correct answer scrap the system The system is fairly stable, has few change requests, and it contributes to business processes. Reengineer the system Continue with regular maintenance Scrap the system Replace all or parts of the system with new systems - Correct answer Continue with regular maintenance . New hardware has been introduced. The system cannot interface with it. Off the shelf systems are available. Reengineer the system Continue with regular maintenance Scrap the system Replace all or parts of the system with new systems - Correct answer replace all or parts of the system with new systems

Match the phases of the software reengineering process to their descriptions. Program modularization Reverse engineering Source code translation Program structure improvement Data reengineering - Correct answer Question Databases are converted to a new structure and schemas are redefined. Program modularization Reverse engineering Source code translation Program structure improvement Data reengineering - Correct answer Data reengineering . Information is extracted from the program. This helps to document it organization and functionality. Program modularization Reverse engineering Source code translation Program structure improvement Data reengineering - Correct answer Reverse engineering The control structure of the program is modified to make it easier to read and understand. Program modularization Reverse engineering Source code translation Program structure improvement Data reengineering - Correct answer Program structure improvement Related portions of code are grouped together and redundancy is removed. Sometimes this involves architectural refactoring.