Course 1 - W2: All quiz

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

One piece of code runs after the other. This is an example of what type of cohesion? A. Logical association cohesion B. Coincidental cohesion C. Procedural cohesion D. Temporal cohesion

C

Choose the correct True-False pair: An error is the manifestation of a failure. A failure is the manifestation of an error. A. False, False B. True, True C. True, False D. False, True

D

If you need to have a cutover strategy where the replacement machine is ready for a full setup and install, then you would choose which of the following cutover strategies? A. Warm standby B. Hot failover C. Warm failover D. Cold backup

D

Module A controls the logical flow of module B. This is an example of what type of coupling? A. Medium control coupling B. Medium data structure coupling

A

Module A relies directly on local data of module B. This is an example of what type of coupling? A. Tight content coupling B. Tight common coupling C. Tight external coupling

A

Software design is the process of transforming the stated problem into a ready-to-use implementation. A. False B. True

A

The loosest type of coupling; components only communicate through parameters or message passing. This is an example of what type of coupling? A. Loose message coupling B. Loose data coupling C. Loose no coupling

A

There is no difference between load balancing and hot failover. A. false B. true

A

While a solution coming from software design does not include implementation details, there are still common cases where pseudocode may be provided to correctly capture the sense of a complex algorithm. A. True B. False

A

What are some reasons why you would need a rollback plan? Select two. A. Installation doesn't go as expected. B. It is the end goal in product deployment. C. Fixing the problem ends up taking longer than the window allows. D. Database management in complex systems.

A, C

You have a sort function that provides no details on which sorting algorithm is used. This is an example of which aspect of modularity? A. Data Encapsulation B. Information Hiding C. Coupling D. Cohesion

B

Which of the following are examples of 'Write code for people not computers'? Select three. A. Do not code while sleep deprived. B. Let your code (variable names, function names, etc.) explain HOW it does what it does. C. In your comments, explain WHY the code does what it does. D. Choose informative variable names.

B, C, D

Components do similar but separate things. This is an example of what type of cohesion? A. Coincidental cohesion B. Procedural cohesion C. Logical association cohesion D. Temporal cohesion

C

Different pieces of code are activated at the same time. This is an example of what type of cohesion? A. Logical association cohesion B. Coincidental cohesion C. Temporal cohesion D. Procedural cohesion

C

Which of the four aspects of modularity can be described as: Containment of constructs and concepts within a module. A. Cohesion B. Coupling C. Information Hiding D. Data Encapsulation

D

Concerns to address in your deployment plan include: A. Physical environment requirements B. Hardware requirements C. Documentation D. 3rd party software requirements E. Training F. Software being deployed G. Database-related activities H. All of the above

H

Module A and B both rely on the same composite data structure. This is an example of what type of coupling? A. Medium data structure coupling B. Medium control coupling

A

Modules A and B both rely on global data or a global variable. This is an example of what type of coupling? A. Tight common coupling B. Tight content coupling C. Tight external coupling

A

Modules rely on externally imposed format (or protocol or interface). This is an example of what type of coupling? A. Tight external coupling B. Tight content coupling C. Tight common coupling

A

One component's output provides the input to another component. This is an example of what type of cohesion? A. Sequential Cohesion B. Communicational Cohesion

A

The four types of weak cohesion are: A. Coincidental, temporal, procedural, logical association B. Coincidental, temporal, sequential, logical association C. Communicational, sequential, object, functional D. There is no such thing as loose cohesion

A

The goal in low coupling is to ensure that changes don't cross the boundaries of modules. A. True B. False

A

The oracle uses information provided from test cases to decide the correctness of the software under test A. True B. False

A

True or False: inheritance strengthens cohesion. A. False B. True

A

When it comes to software design, it is always best to follow a solution that is widely popular in the industry A. False B. True

A

Test cases are composed of _______ A. test data B. system (actual) outputs C. expected outputs

A, C

The three cutover strategies are... A. Warm standby B. Cold failover C. Hot failover D. Cold backup E. Warm failover F. Hot standby

A, C, D

Check all that apply: The four aspects of modularity are... A. Data Encapsulation B. Data Hiding C. Information Hiding D. Components E. Cohesion F. Sort Functions G. Coupling

A, C, E, G

All elements of a component operate on the same input or produce the same output. This is an example of what type of cohesion? A. Sequential Cohesion B. Communicational Cohesion

B

Choose the most accurate answer: Cohesion describes... A. loose coupling. B. how well everything within a module fits together. C. decomposability. D. how changes do not cross boundaries of modules.

B

Deployment occurs in the end stage of active development. A. False B. True

B

Each operation in a module is provided to allow object attributes to be modified or inspected. This is an example of what type of cohesion? A. Functional Cohesion B. Object Cohesion

B

Every part of a component is necessary for a single well-defined behavior. This is an example of what type of cohesion? A. Object Cohesion B. Functional Cohesion

B

Fill in the blank. Write ____, _____, and _____ before writing functional code. A. Comments; Benchmarks; Tips for Use. B. Comments; Tests; Exception Handling. C. System Specifications; User Guide; Exception Handling.

B

If you need to have a cutover strategy where the replacement machine is running and ready for installation, then you would choose which of the following cutover strategies? A. Cold failover B. Warm standby C. Hot failover D. Cold backup

B

Manual oracles are sufficient and effective for the majority of real-world applications A. True B. False

B

Modules only share parameters. This is an example of what type of coupling? A. Loose no coupling B. Loose data coupling C. Loose message coupling

B

Software testing can be used to prove the absense of failures in a module, but not the absense of faults A. True B. False

B

The goal in real-life software development is to aim for object and functional cohesion and anything less than this should be justified. A. False B. True

B

The three types of loose coupling are: A. Control; Data Structure; Loose B. Data; Message; None C. Data; Message; Data Structure D. Content; Common; External

B

The three types of tight coupling are: A. Data; Message; None B. Content; Common; External C. There is no such thing as tight coupling D. Control; Data Structure; Message

B

The two types of strong cohesion are: A. Coincidental, temporal B. Object, functional C. Object, strong D. Communicational, sequential

B

True or False: Every method can be written without side effects. A. True. B. False.

B

Which of the four aspects of modularity can be described as: Abstracting away implementation details. A. Coupling B. Information Hiding C. Data Encapsulation D. Cohesion

B

Which of the four aspects of modularity can be described as: How well a module meets a single well-defined goal. A. Data Encapsulation B. Cohesion C. Coupling D. Information Hiding

B

Which of the four aspects of modularity is defined as: How well modules work together. A. Data Encapsulation B. Coupling C. Cohesion D. Information Hiding

B

Product deployment should encapsulate three main focus areas. What are they? A. Description of the physical environment B. Problem areas C. Planned steps D. Plan for recovery in case of failure

B, C, D

A benefit to using ______ is that you know if your data is corrupted, then it must have been corrupted by the module. A. Cohesion B. Information Hiding C. Data Encapsulation D. Coupling

C

If you write the same code more than once... A. It's okay. B. You did something wrong. C. Put that code into a method.

C

Test data represents possible inputs that are provided to the _____ for the purposes of testing. A. system B. oracle C. both the system and the oracle

C

The two types of medium cohesion are: A. Coincidental, temporal B. Sequential, logical association C. Communicational, sequential D. There is no such thing as medium cohesion

C

Three goals of ______ can be described as (1) Decomposability, (2) Composability, and (3) Ease of Understanding. A. Cohesion B. Coupling C. Modularity

C

Why should you program when you are alert? A. Sleep deprivation leads to mistakes. B. Output falls drastically after working 50+ hours per week. C. All of the above

C

The two types of medium coupling are: A. Message; None B. Data; Message C. Content; Common D. Control; Data Structure

D

Which of the following statements about cohesion is true? A. Cohesion measures how well everything within a module fits together. B. Describes the implementation of a single logical entity or function. C. Represents a desirable design attitude. D. High cohesion is the aim in software development. E. All of the above

E

Which of the following statements about coupling are true? A. Coupling measures the strength of connections between components. B. Loose coupling makes it unlikely that changes will be propogated across components. C. Shared variables and control information leads to tight coupling. D. Loose coupling is partly achieved through message passing. E. All of the above

E

Parts of modules are together in the same file. This is an example of what type of cohesion? A. Coincidental cohesion B. Procedural cohesion C. Logical association cohesion D. Temporal cohesion

A

A rollback is the reversal of actions completed during deployment with the intent to never revert a system back to its previous working state. A. False B. True

A

Abstract solutions do not require extensive domain knowledge and effectively reduce the costs during the software design phase. A. False B. True

A

Choose the most accurate answer: Low coupling aids in... A. ensuring that changes don't cross boundaries of modules. B. abstracting away complex information. C. lower corruption rate of data. D. decomposability.

A

Deployment without a rollback plan should occasionally occur. Especially when the installation involves deleting files. A. False B. True

A

If you need to have a cutover strategy where the replacement services are ready for the redirection of data with no installation, then you would choose which of the following cutover strategies? A. Hot failover B. Cold backup C. Hot backup D. Warm standby

A

It is often advised that abstract solutions do not provide optimization details regarding the implementation. A. True B. False

A

It is possible for errors to remain undiscovered as long as the erroneous ________ is never used A. component B. test data C. test case D. output

A


Kaugnay na mga set ng pag-aaral

7. AMERICAN REVOLUTION: AMERICAN FRONTIER

View Set

PEnne Chapters 25-27 OB conditions

View Set

Lecture 3: Experimental Techniques in Neuroelectrophysiology

View Set

MADM 701 - Module 2, Reward Systems

View Set

AWS Developer Associate (DVA-C02)

View Set

Ch. 12 AP Environmental Science (Resource Management, Forestry, Land Use, and Protected Areas)

View Set