Chapter 3 - Quiz Flashcards
Which of the following statements about static testing are MOST true?
Static testing is a cheap way to detect and remove defects
Which of the following statements CORRECTLY reflects the value of static testing?
Since we started using static analysis, we find coding defects that might have not been found by performing only dynamic testing
Question #3.1.05
You are working on a video game development project, using Agile methods. It is based on Greek mythology and history, and players can play key roles in scenarios such as the battles between the Greeks and Trojans.
Consider the following user story and its associated acceptance criteria:
As a player, I want to be able to acquire the Rod of Midas (a new magic object), so that I can turn objects and other players into gold
AC1: The Rod must work on any object or player, no matter what size, which can be touched anywhere by the player holding the Rod
AC2: Holding the Rod does not change the player holding it into gold
AC3: Any object or player touched by the Rod transforms completely into gold within one millisecond
AC4: The Rod appears as shown in Prototype O.W.RoM
AC5: The transformation starts at the point of contact with the Rod and moves at a rate of one meter per millisecond
You are participating in a checklist-based review session of this user story.
This user story and its associated acceptance criteria contain which of the following typical defects identified by static testing in this type of work product?
Contradiction
Contradiction is a typical requirements defect. AC3 and AC5 conflict if the Rod is touched to an object that extends more than 1 meter in any direction from the point at which touched, since AC1 does not limit the size of the objects to be touched
Which testing technique would be most effective in determining and improving the maintainability of the code (assuming developers fix what is found)?
Static aanalysis
Static analysis with tools will give the best results for improving maintainability and ensuring adherence to good coding practices.
Which of the following is a benefit of static analysis?
Defects can be identified that might not be caught by dynamic testing
Static analysis with a static analyzer can be used to find defects such as uninitialized variables that could be difficult to catch with dynamic testing.
Which of the following statements about static testing is False?
Static analysis is applicable to executing test scripts
Question #3.1.11
Which of the following statements are characteristics of static testing, and which are characteristics of dynamic testing?
- Finds defects in work products directly.
- Better for ensuring internal quality (e.g. standards are followed).
- Finds defects through failures in execution.
- Easier and cheaper to find and fix security vulnerabilities (e.g. buffer overflow).
- Focuses on externally visible behaviours.
Static testing = 1, 2, 4
Dynamic testing = 3, 5
Which of the following statements BEST states the value of static testing
It can prevent defects later in the design and coding by uncovering issues in requirements
Which statement about the function of a static analysis tool is true?
Gives quality information about the code without executing it
Question #3.1.20
Which of the following types of defect are typically found in reviews rather than in dynamic testing?
I. Deviations from standards
II. Poor performance of the system
III. Poor maintainability of code
IV. Defects in requirements
I. Deviations from standards
III. Poor maintainability of code
IV. Defects in requirements
What statement about static analysis is true?
With static analysis, defects can be found that are difficult to find with dynamic testing
In which step of the review process do we check that the entry criteria are met?
Planning
In a formal review, who executes the control decisions in the event of inadequate outcomes?
Manager
In a formal review, who is the person on who the success of the review depends on him?
Facilitator
Which of the review types below is the BEST option to choose when the review must follow a formal process based on rules and checklists?
Inspection
Reviews
Inspection → Led by a trained facilitator and Uses entry and exit criteria
Peer review → No management participation
Informal review → Undocumented
Walkthrough → Led by author
What statement about reviews is true?
→ Inspections are led by a trained facilitator, whereas technical reviews are not necessarily
Which review type may take the form scenarios, dry, runs, or simulations?
Walkthrough
You are preparing for a review of a mobile application that will allow users to transfer money between bank accounts from different banks. Security is a concern with this applications and the previous version of this application had numerous security vulnerabilities. It is very important that this doesn’t happen again.
→ Checklist-based
Which of the following options are roles in a formal review?
Author, moderator, review leader, reviewer, scribe
Which activities are carried out within the planning of a formal review?
Definition and verification of fulfillment of entry criteria for the review.
The checking of entry criteria takes place in the planning of a formal review
Which of the review types below is the BEST option to choose when the review must follow a formal process based on rules and checklists?
Inspection
Inspection is a formal process based on rules and checklists
Question #3.2.04
You will be invited to a review. The work product to be reviewed is a description of the in-house document creation process. The aim of the description is to present the work distribution between the different roles involved in the process in a way that can be clearly understood by everyone. You will be invited to a checklist-based review. The checklist will also be sent to you. It includes the following points:
i. Is the person who performs the activity clearly identified for each activity?
ii. Are the entry criteria clearly defined for each activity?
iii. Are the exit criteria clearly defined for each activity?
iv. Are the supporting roles and their scope of work clearly defined for each activity?
In the following we show an excerpt of the work result to be reviewed, for which you should use the
checklist above:
“After checking the customer documentation for completeness and correctness, the software architect creates the system specification. Once the software architect has completed the system specification, he invites testers and verifiers to the review. A checklist describes the scope of the review. Each invited reviewer creates review comments - if necessary - and concludes the review with an official review done-comment.”
Which of the following statements about your review is correct?
Point i -> of the checklist has been violated because it is not clear who is providing the checklist for the invitation to the review
Which of the following statements on the use of checklists in a formal review is CORRECT?
As part of the review initiation, the reviewers receive the checklists needed for the review
Which of the following CORRECTLY matches the roles and responsibilities in a formal review?
Manager - Decides on the execution of reviews
Question 7:
Question #3.2.07
The reviews being used in your organization have the following attributes:
- There is a role of a scribe
- The purpose is to detect potential defects
- The review meeting is led by the author
- Reviewers find potential defects by individual review
- A review report is produced
Which of the following review types is MOST likely being used?
Walkthrough
• The review meeting is led by the author – this is not allowed for inspections and is typically not the author for technical reviews, but is part of walkthroughs, and allowed for informal reviews