ISTQB certification exam questions for chapter Static techniques

Q1: Static analysis is best described as:

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.

Q2: 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, code, and test plans.

Q3: 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.

Q4: ‘Entry criteria’ should address questions such as
I. Are the necessary documentation, design and requirements information available that will allow testers to operate the system and judge correct behaviour.
II. Is the test environment-lab, hardware, software and system administration support ready?
III. Those conditions and situations that must prevail in the testing process to allow testing to continue effectively and efficiently.
IV. Are the supporting utilities, accessories and prerequisites available in forms that testers can use

A    I, II and IV

B    I, II and III

C    I, II, III and IV

D    II, III and IV.

Q5: Static Analysis

A    Same as static testing

B    Done by the developers

C    Both A. and B

D    None of the above

Q6: In formal review, Rework: fixing defects found typically done by _________

A    Moderator

B    Author

C    Reviewer

D    Recorder

Q7: Which expression best matches the following characteristics or review processes:
1. Led by author
2. Undocumented
3. No management participation
4. Led by a trained moderator or leader
5. Uses entry exit criteria

s) Inspection
t) Peer 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

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

Q8: 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

E    Inspection compares documents with predecessor (source) documents

Q9: What can static analysis NOT find?

A    The use of a variable before it has been defined

B    Unreachable ("dead") code

C    Whether the value stored in a variable is correct

D    The re-definition of a variable before it has been used

E    Array bound violations

Q10: Which rule should not be followed for reviews

A    Defects and issues are identified and corrected

B    The product is reviewed not the producer

C    All members of the reviewing team are responsible for the result of the review

D    Each review has a clear predefined objective

Q11: 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.

Q12: Static analysis tools are typically used by

A    Testers

B    Developers

C    Testers & Developers

D    None

Q13: Which of the following statements are TRUE for informal reviews?
I. Easy to get started and have some benefit
II. Have no or minimal formal process
III. The process must be documented
IV. May include "paired programming"

A    I, II and IV

B    I and III

C    III and IV

D    I, III and IV

Q14: Who is responsible for documenting all the issues, problems and open point that were identified during the review meeting

A    Moderator

B    Scribe

C    Reviewers

D    Author

Q15: 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.

Q16: Which test requires the execution of the software component?

A    Formal inspection

B    Dynamic testing

C    Code walkthrough

D    Execution testing

Q17: Who typically use static analysis tools?

A    Customers and users

B    Developers and designers

C    Business and systems analysts

D    System and acceptance testers

Q18: For which of the following would a static analysis tool be MOST useful?

A    Supporting reviews.

B    Validating models of the software.

C    Testing code executed in a special test harness.

D    Enforcement of coding standards.

Q19: Typical defects that are easier to find in reviews than in dynamic testing are:

A    Deviations from standards,

B    Requirement defects,

C    Design defects,

D    All of the above.

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

A    Identifying defects.

B    Fixing defects.

C    A. and B

D    None of the above

Q21: Find the correct flow of the phases of a formal review

A    Planning, Review meeting, Rework, Kickoff

B    Planning, Individual preparation, Kickoff, Rework

C    Planning, Review meeting, Rework, Follow up

D    Planning, Individual preparation, Follow up, Kick off

Q22: One person has been dominating the current software process improvement meeting. Which of the following techniques should the facilitator use to bring other team members into the discussion?

A    Confront the person and ask that other team members be allowed to express their opinions.

B    Wait for the person to pause, acknowledge the person’ s opinion, and ask for someone else’ s opinion.

C    Switch the topic to an issue about which the person does not have a strong opinion.

D    Express an opinion that differs from the person’ s opinion in order to encourage others to express their ideas.

Q23: What is the main purpose of Informal review

A    Inexpensive way to get some benefit

B    Find defects

C    Learning, gaining understanding, effect finding

D    Discuss, make decisions, solve technical problems

Q24: The principle of Cyclomatic complexity, considering L as edges or links, N as nodes, P as independent paths

A    L- N + 2P

B    N - L + 2P

C    N - L + P

D    N - L + P

Q25: 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

Q26: Which of the following is true about Formal Review or Inspection:-
i. Led by Trained Moderator (not the author).
ii. No Pre Meeting 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

Q27: The Phases of formal review process is mentioned below arrange them in the correct order.
i. Planning
ii. Review Meeting
iii. Rework
iv. Individual Preparations
v. Kick Off
vi. Follow Up

A    i,ii,iii,iv,v,vi

B    vi,i,ii,iii,iv,v

C    i,v,iv,ii,iii,vi

D    . i,ii,iii,v,iv,vi

Q28: 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.

Q29: 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

Q30: A Person who documents all the issues, problems and open points that were identified during a formal review.

A    Moderator.

B    Scribe

C    Author

D    Manager

Q31: Which statements correctly describe certain phases of a formal review?

A    Looking for defects occurs during kick-off phase
Fixing defects found happens during rework phase

B    Personnel selection occurs during planning phase
Gathering metrics happens during the review meeting phase

C    Distributing documents occurs during the planning phase
Personal review happens during individual preparation phase

D    Personnel selection occurs during planning phase
Fixing defects found happens during rework phase

Q32: Which of the following is a Key Characteristics of Walk Through

A    Scenario, Dry Run, Peer Group

B    Pre-Meeting Preparations

C    Formal Follow Up Process

D    Includes Metrics

Q33: The Planning phase of a formal review includes the following :-

A    Explaining the objectives

B    Selecting the personnel, allocating roles.

C    Follow up

D    Individual Meeting preparations

Q34: In which phase static tests are used

A    Requirements

B    Design

C    Coding

D    All of the above

Q35: Which of the following are success factors for reviews?

I. Clear objectives for each review.
II. Checklists and/or roles are used to increase effectiveness of defect identification.
III. There is an emphasis on process improvement.
IV. People issues and psychological aspects are not reviewed.

A    I and III

B    II, III and IV

C    I, II and III

D    IV

Q36: The person who leads the review of the document(s), planning the review, running the meeting and follow-up after the meeting

A    Reviewer

B    Author

C    Moderator

D    Auditor

Q37: A formal assessment of a work product conducted by one or more qualified independent reviewer to detect defects.

A    Inspection.

B    Walkthrough.

C    Review

D    Non Conformance

Q38: A series of probing questions about the completeness and attributes of an application system is called

A    Checklist

B    Checkpoint review

C    Decision table

D    Decision tree

Q39: Typical defects discovered by static analysis includes

A    Programming standard violations

B    Referring a variable with an undefined value

C    Security vulnerabilities

D    All Above

Q40: Which of the following are the main stages of a formal review?

A    Initiation, Preparation, Informal Review Meeting, Status, Rework, and Follow up.

B    Planning, Preparation, Technical Review, Rework, and Closure.

C    Preparation, Inspection, Rework, Closure, and Follow up.

D    Planning, Kick off, Individual Preparation, Review Meeting, Rework, and Follow up

Q41: Given the Following program
IF X <>= Z
THEN Statement 2;
McCabe’s Cyclomatic Complexity is :

A    2

B    3

C    4

D    5

Q42: In a review meeting a moderator is a person who

A    Takes minutes of the meeting

B    Mediates between people

C    Takes telephone calls

D    Writes the documents to be reviewed

Q43: Static code analysis typically identifies all but one of the following problems. Which is it?

A    Unreachable code

B    Undeclared variable

C    Faults in the requirements

D    Too few comments

Q44: What statement about static analysis is true?

A    With static analysis, defects can be found that are difficult to find with dynamic testing.

B    Compiling is not form of static analysis

C    When properly performed, static analysis makes functional testing redundant.

D    Static analysis finds all faults.

Q45: Which statement about the function of static analysis tool is true?

A    Gives quality information about the code without executing it.

B    Checks expected results against actual results.

C    Can detect memory leaks.

D    Gives information about what code has and has not been exercised.

Q46: 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

Q47: Which of the following, if observed in reviews and tests, would lead to problems (or conflict) within teams?

A    Testers and reviewers are not curious enough to find defects.

B    Testers and reviewers are not qualified enough to find failures and

C    Testers and reviewers communicate defects as criticism against
persons and not against the software product.

D    Testers and reviewers expect that defects in the software product have
already been found and fixed by the developers

Q48: Which of the following are the main phases of a formal review?

A    Initiation, status, preparation, review meeting, rework, follow up.

B    Planning, preparation, review meeting, rework, closure, follow up.

C    Planning, kick off, individual preparation, review meeting, rework, follow

D    Preparation, review meeting, rework, closure, follow up, root cause

Q49: Which of the following statements about static analysis is FALSE?

A    Static analysis can be used as a preventive measure with appropriate
process in place.

B    Static analysis can find defects that are not easily found by dynamic

C    Static analysis can result in cost savings by finding defects early.

D    Static analysis is a good way to force failures into the software.

Navigation :

ISTQB Home |  ISTQB mock tests |