Chapter 3 Static Testing Flashcards

1
Q

Static Analysis

A. A static testing

B. Done by the developers

C. Both A. and B

D. None of the above

A

C. Both A. and B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why are static testing and dynamic testing described as complementary?

A. Because they share the aim of identifying defects and find the same types of defect.

B. Because they have different aims and differ in the types of defect they find.

C. Because they have different aims but find the same types of defect.

D. Because they share the aim of identifying defects but differ in the types of defect they find.

A

D. Because they share the aim of identifying defects but differ in the types of defect they find.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Ensuring that test design starts during the requirements definition phase is important to

enable which of the following test objectives?

A. Preventing defects in the system.

B. Finding defects through dynamic testing.

C. Gaining confidence in the system.

D. Finishing the project on time.

A

A. Preventing defects in the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Find the correct flow of the phases of a formal review

A. Planning, Individual Review, Initiate Review, Issue Comm & Analysis, Fixing & reporting

B. Planning, Initiate Review, Individual Review, Issue Comm & Analysis, Fixing & reporting

C. Planning, Issue Comm & Analysis, Individual Review, Initiate Review, Fixing & reporting

D. Planning, Individual Review, Initiate Review, Fixing & reporting, Issue Comm & Analysis

A

B. Planning, Initiate Review, Individual Review, Issue Comm & Analysis, Fixing & reporting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The Planning phase of a formal review includes the following:

A. Explaining the objective

B. Fixing defects found typically done by author

C. Defining the entry and exit criteria

D. Individual Meeting preparations

A

C. Defining the entry and exit criteria

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following BEST describes the difference between an inspection and a walkthrough?

A. Both inspections and walkthroughs are led by the author.

B. An inspection is led by a moderator and a walkthrough is led by the author.

C. Both inspections and walkthroughs are led by a trained moderator.

D. A walkthrough is led by the author. The author is not present during inspections.

A

B. An inspection is led by a moderator and a walkthrough is led by the author.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Who is responsible for document all the issues, problems and open point that were

identified during the review meeting

A. Moderator

B. Scribe

C. Reviewers

D. Author

A

B. Scribe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following is true about Formal Review or Inspection:-

i. Led by Trained Moderator (not the author).
ii. No individual Preparations
iii. Formal Follow up process.
iv. Main Objective is to find defects

A. ii is true and i,iii,iv are false

B. i,iii,iv are true and ii is false

C. i,iii,iv are false and ii is true

D. iii is true and i,ii,iv are false

A

B. i,iii,iv are true and ii is false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following are types of static Testing ?

A. Ad hoc & Perspective-based

B. Inspection & Walkthrough

C. Review & Static Analysis

D. White-Box & Black Box

A

C. Review & Static Analysis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Data flow analysis studies:

A. Possible communications bottlenecks in a program.

B. The rate of change of data values as a program executes.

C. The use of data on paths through the code.

D. The intrinsic complexity of the code.

A

C. The use of data on paths through the code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which of the following will NOT be detected by static analysis?

A. Programming standard violations.

B. Errors in requirements.

C. Undeclared variables.

D. Dead Code.

A

B. Errors in requirements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What type of review requires formal entry and exit criteria, including metrics:

A. Walkthrough

B. Inspection

C. Management review

D. Post project review

A

B. Inspection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Of the following statements about reviews of specifications, which statement is true?

A. Reviews are not generally cost effective as the meetings are time consuming and require preparation

and follow up.

B. There is no need to prepare for or follow up on reviews.

C. Reviews must be controlled by the author.

D. Reviews are a cost effective early static test on the system.

A

D. Reviews are a cost effective early static test on the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which of the following is a purpose of the review planning phase?

A. Log defects.

B. Explain the documents to the participants.

C. Gather metrics.

D. Allocate the individual roles.

A

D. Allocate the individual roles.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Who are the persons involved in a Formal Review:

i. Manager
ii. Moderator
iii. Scribe / Recorder
iv. Assistant Manager

A. i,ii,iii,iv are true

B. i,ii,iii are true and iv is false.

C. ii,iii,iv are true and i is false.

D. i,iv are true and ii, iii are false.

A

B. i,ii,iii are true and iv is false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which of the following statements regarding static testing is false:

A. Static testing requires the running of tests through the code

B. Static testing includes desk checking

C. Static testing includes techniques such as reviews and inspections

D. Static testing can give measurements such as cyclomatic complexity

A

A. Static testing requires the running of tests through the code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

_________ reviews are often held with just the programmer who wrote the code and one or

two other programmers or testers.

A. Formal Reviews

B. Peer Reviews

C. Semi Formal Reviews

D. All of the above

A

B. Peer Reviews

18
Q

Which of the following characteristics and types of review processes belong together?

  1. Led by the author
  2. Undocumented
  3. Gaining Consensus
  4. Led by a trained moderator or leader
  5. Uses entry and exit criteria
    s. Inspection
    t. Technical review
    u. Informal review
    v. Walkthrough

A. s = 4, t = 3, u = 2 and 5, v = 1

B. s = 4 and 5, t = 3, u = 2, v = 1

C. s = 1 and 5, t = 3, u = 2, v = 4

D. s = 5, t = 4, u = 3, v = 1 and 2

A

B. s = 4 and 5, t = 3, u = 2, v = 1

19
Q

Which characteristics BEST describe a walkthrough?

A. Documented, includes peers and experts

B. Formal process, collects metrics

C. Defined roles, led by trained moderator

D. Led by the author, may be documented

A

D. Led by the author, may be documented

20
Q

Which of the following would NORMALLY be identified by static testing?

A. Mistake

B. Defect

C. Failure

D. Error

A

B. Defect

21
Q

As a moderator in a typical formal review, what can be one of your responsibilities?

A. Deciding on the execution of reviews

B. Documenting all the issues and problems

C. Leading the review of the documents

D. Identifying and describing the findings

A

C. Leading the review of the documents

22
Q

What is the main purpose of Informal review? (Chapter 3) A. improve the software product

B. Detecting potential defects

C. Learning, gaining understanding, effect finding

D. Discuss, make decisions, solve technical problems

A

B. Detecting potential defects

23
Q

Could reviews or inspections be considered part of testing?

A. no, because they apply to development documentation

B. no, because they are normally applied before testing

C. yes, because both help detect faults and improve quality

D. yes, because testing includes all non-constructive activities

A

C. yes, because both help detect faults and improve quality

24
Q

Which of the following is a Key Characteristic of Walk Through?

A. Scenario, Dry Run, Simulations

B. Pre-Meeting Preparations

C. Formal Follow Up Process

D. Includes Metrics

A

A. Scenario, Dry Run, Simulations

25
Q

Which of the following are good candidates for manual static testing?

A. Requirement specifications, test plan, code, memory leaks.

B. Requirement specifications, test cases, user guides.

C. Requirement specifications, user guides, performance.

D. Requirement specifications, website, code, use cases.

A

B. Requirement specifications, test cases, user guides.

26
Q

What is the best description of static analysis? (Chapter 3)

A. The analysis of batch programs

B. The reviewing of test plans

C. The analysis of program code

D. The use of black-box testing

A

C. The analysis of program code

27
Q

The Phases of formal review process is mentioned below, arrange them in the correct order. (Chapter 3)

i. Planning
ii. Individual Review
iii. Issue Communication & Analysis
iv. Initiate review v. Fixing & Reporting

A. i,ii,iii,iv,v
B. vi,i,ii,iii,v
C. i,v,iv,ii,iii,
D. i,iv,ii,iii,v

A

D. i,iv,ii,iii,v

28
Q

In a formal review, who is primarily responsible for the documents to be reviewed?

A. Author

B. Manager

C. Moderator

D. Reviewers

A

A. Author

29
Q

Which statements correctly describe certain phases of a formal review?

A. Looking for defects occurs during the Initiate review phase Fixing defects found happens during the Individual Review phase

B. Personnel selection occurs during the planning phase Fixing defects found happens during the Fixing & Reporting

C. Personnel selection occurs during the planning phase
Gathering metrics happens during the Issue Communication & Analysis phase

D. Distributing documents occurs during the planning phase Personal review happens during the individual Review

A

B. Personnel selection occurs during the planning phase

Fixing defects found happens during the Fixing & Reporting

30
Q

Which of the following are the typical defects found by static analysis tools?

a. Variables that are never used.
b. Security vulnerabilities.
c. Poor performance.
d. Unreachable code.
e. Business processes not followed.

A. b, c and d are true; a and e are false

B. a is true; b, c, d and e are false

C. c, d and e are true; a and b are false

D. a, b and d are true; c and e are false

A

D. a, b and d are true; c and e are false

31
Q

Which of the following statements about reviews is true?

A. Reviews cannot be performed on user requirements specifications.

B. Reviews are the least effective way of testing code.

C. Reviews are unlikely to find faults in test plans.

D. Reviews should be performed on specifications, user guides and test plans.

A

D. Reviews should be performed on specifications, user guides and test plans.

32
Q

What can static analysis NOT find?

A. the use of a variable before it has been defined

B. unreachable (“dead”) code

C. memory leaks

D. array bound violations

A

C. memory leaks

33
Q

Which of the following is the responsibility of a Review leader?

A. Is responsible for review planning

B. Creates the work product under review

C. Is often the person upon whom the success of the review depends

D. Decides who will be involved and organizes when and where it will take place

A

D. Decides who will be involved and organizes when and where it will take place

34
Q

Which of the following statements is NOT true?

A. inspection is the most formal review process

B. inspections should be led by a trained leader

C. managers can perform inspections on management documents

D. inspection is appropriate even when there are no written documents

A

D. inspection is appropriate even when there are no written documents

35
Q

Peer Reviews are also called as:

a) Inspection
b) Walkthrough
c) Technical Review
d) Formal Review

A

c) Technical Review

36
Q

Success Factors for a review include:

i. Each Review does not have a predefined objective
ii. Defects found are welcomed and expressed objectively
iii. Management supports a good review process.
iv. There is an emphasis on learning and process improvement.

a) ii,iii,iv are correct and i is incorrect
b) iii , i , iv is correct and ii is incorrect
c) i , iii , iv , ii is in correct
d) ii is correct

A

a) ii,iii,iv are correct and i is incorrect

37
Q

Reviews, static analysis and dynamic testing have the same objective:

A. identifying defects.

B. fixing defects.

C. 1 and 2

D. None

A

A. identifying defects.

38
Q

Who is responsible for conducting test readiness review?

a. Test manager
b. Test engineer
c. both A & B
d. Project Manager

A

a. Test manager

39
Q

Is often the person upon whom the success of the review depends.

A. Scribe

B. Author

C. Manager

D. Facilitator

A

D. Facilitator

40
Q

Requires the reviewers to attempt to use the work product under review to generate the product they would derive from it.

A. Role-based

B. Ad hoc

C. Perspective-based

D. Scenarios & Dry Runs

A

C. Perspective-based