ExamGecko
Home Home / Scrum / PSD

Scrum PSD Practice Test - Questions Answers, Page 4

Question list
Search
Search

What are two reasons to use mock objects in unit tests?

A.
The behavior of a given object can be emulated to the system under test
A.
The behavior of a given object can be emulated to the system under test
Answers
B.
They are machine-generated and eliminate the need to write code by hand
B.
They are machine-generated and eliminate the need to write code by hand
Answers
C.
To increase tight coupling
C.
To increase tight coupling
Answers
D.
TDD is impossible without them
D.
TDD is impossible without them
Answers
E.
Isolating a particular system component for controlled testing
E.
Isolating a particular system component for controlled testing
Answers
Suggested answer: A, E

Explanation:

Mock objects are simulating the behavior of dependencies such as persistance layers or APIs. By mocking these you can be sure about what you are testing, and not accidentally testing the external dependency.

Select three criteria for the definition of done

A.
Code review is done
A.
Code review is done
Answers
B.
Acceptance tests pass
B.
Acceptance tests pass
Answers
C.
Regression tests pass
C.
Regression tests pass
Answers
D.
The product is released at the end of every sprint
D.
The product is released at the end of every sprint
Answers
E.
Code coverage 90%
E.
Code coverage 90%
Answers
Suggested answer: A, B, C

Explanation:

Releasing the product at the end of the sprint doesn't relate to one item and when it's done. Code coverage does, but it's the worst criteria in this list, because it's a stimulus to write tests that cover a lot of lines rather than cover the functionality.

Which metric is least useful when measuring code maintainability?

A.
Function points
A.
Function points
Answers
B.
Cyclometic complexity
B.
Cyclometic complexity
Answers
C.
Depth of inheritance
C.
Depth of inheritance
Answers
Suggested answer: A

Explanation:

The other two are good metrics. Function points are the points representing the amount of business functionality.

Is it a good idea to follow each automated build with the execution of automated tests?

A.
Yes, it will show code coverage which is an excellent metric of quality and progress
A.
Yes, it will show code coverage which is an excellent metric of quality and progress
Answers
B.
No, it takes too much time
B.
No, it takes too much time
Answers
C.
No, the outcomes might disturb the developers' focus
C.
No, the outcomes might disturb the developers' focus
Answers
D.
Yes, the tests may identify whether there are bugs that the developers should fix before proceeding
D.
Yes, the tests may identify whether there are bugs that the developers should fix before proceeding
Answers
Suggested answer: D

Explanation:

It's definitely a good practice. And not because you can see the code coverage (which also isn't an excellent metric of quality and progress), but because you can detect problems before moving on.

What are two ways developers can ensure a good architecture? (two answers)

A.
Architecture is an ongoing discussion amongst the developers, focusing on implementing current Sprint Backlog Items
A.
Architecture is an ongoing discussion amongst the developers, focusing on implementing current Sprint Backlog Items
Answers
B.
The developers focus only on adding functionality. The architecture will take care of itself as the developers add functionality
B.
The developers focus only on adding functionality. The architecture will take care of itself as the developers add functionality
Answers
C.
The developers have a set of guiding architecture principles that every developer understands and follows when writing code
C.
The developers have a set of guiding architecture principles that every developer understands and follows when writing code
Answers
D.
Developers assign someone to the role of software architect to ensure the architecture
D.
Developers assign someone to the role of software architect to ensure the architecture
Answers
E.
Architecture is dealt with in sprint 0
E.
Architecture is dealt with in sprint 0
Answers
Suggested answer: A, C

Explanation:

There is no sprint 0, architecture won't take care of itself and there is no architect role. The architecture is an ongoing discussion and growing construct. There are guidelines and principles in place.

Which of the following describes an architecture spike?

A.
A fundamental architectural problem found in an existing application
A.
A fundamental architectural problem found in an existing application
Answers
B.
The result of an exhaustive architectural planning effort
B.
The result of an exhaustive architectural planning effort
Answers
C.
A small development activity to learn about technical elements of a proposed solution
C.
A small development activity to learn about technical elements of a proposed solution
Answers
D.
A decision made by a systems architect to settle disagreement amongst the developers
D.
A decision made by a systems architect to settle disagreement amongst the developers
Answers
Suggested answer: C

Explanation:

An architecture spike is a small development activity to learn about technical elements of a proposed solution.

What is technical debt?

A.
A term representing the eventual consequences of poor technical choices
A.
A term representing the eventual consequences of poor technical choices
Answers
B.
Developers that have to pay college debt
B.
Developers that have to pay college debt
Answers
C.
Code that hasn't been documented
C.
Code that hasn't been documented
Answers
D.
The money an organization owes to tool and hardware vendors
D.
The money an organization owes to tool and hardware vendors
Answers
Suggested answer: A

Explanation:

Technical debt is the result of incomplete work going into the increment and poor design and architectural choices.

When should a newly discovered huge bug of a previous sprint be fixed?

A.
Immediately.
A.
Immediately.
Answers
B.
Don't fix it immediately, but change the test to not show it as a temporary fix.
B.
Don't fix it immediately, but change the test to not show it as a temporary fix.
Answers
C.
Don't fix it, but stub out the code that causes it.
C.
Don't fix it, but stub out the code that causes it.
Answers
D.
Depends on what the product owner wants.
D.
Depends on what the product owner wants.
Answers
Suggested answer: D

Explanation:

Hiding the bug won't make it go away. Discussing with the product owner is a good step to take, because he knows what work leads to maximum value.

Which two criteria are useful in deciding if something should be documented every sprint?

A.
It has always been documented in the past
A.
It has always been documented in the past
Answers
B.
The documentation is used to enhance and maintain the software
B.
The documentation is used to enhance and maintain the software
Answers
C.
The scrum master demands it
C.
The scrum master demands it
Answers
D.
The software tool being used requires it
D.
The software tool being used requires it
Answers
E.
It is required by the definition of done
E.
It is required by the definition of done
Answers
Suggested answer: B, E

Explanation:

if the documentation is adding to the quality and maintenance of the software this is definitely a good argument for documenting every sprint. Just because that's the way it's done and we don't want change is not a good reason. Tooling that requires is also isn't. And the scrum master cannot demand this kind of things. If the company's definition of done says so, you must :)

Which are four attributes of a good bug report?

A.
Screenshots or pictures of the bug in action, if possible
A.
Screenshots or pictures of the bug in action, if possible
Answers
B.
Explains some new system functionality desired
B.
Explains some new system functionality desired
Answers
C.
Includes build or version number where bug was found
C.
Includes build or version number where bug was found
Answers
D.
Expected results and observed results
D.
Expected results and observed results
Answers
E.
Provides simple and repeatable reproduction steps
E.
Provides simple and repeatable reproduction steps
Answers
F.
Includes code for a proposed fix
F.
Includes code for a proposed fix
Answers
Suggested answer: A, C, D, E
Total 120 questions
Go to page: of 12