ISTQB certification exam questions for chapter Static techniques

Questions
Q1: The ________ and ________ are used within individual workbenches to produce the right output products.

A    Tools and techniques

B    Procedures and standards

C    Processes and walkthroughs

D    Reviews and update

Q2: Verification involves which of the following:-
i. Helps to check the Quality of the built product
ii. Helps to check that we have built the right product.
iii. Helps in developing the product
iv. Monitoring tool wastage and obsoleteness.

A    Options i,ii,iii,iv are true.

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

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

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

Q3: Static analysis is BEST described as:

A    Examining work products without executing them, typically using automated tools.

B    Executing source code to detect runtime defects.

C    Performing black-box testing using predefined test cases.

D    Reviewing only test plans without tool support.

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

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

Q6: Static analysis is BEST described as:

A    A review of work products performed by people

B    Examination of work products without executing them, typically using automated tools

C    Dynamic testing performed by developers

D    Black-box testing without executing the software

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

A    Moderator

B    Author

C    Reviewer

D    Recorder

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

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

Q9: Which of the following statements is NOT true:

A    Inspection is the most formal review process

B    Inspections should be led by a trained moderator

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

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

Q11: Which of the following statements about reviews is NOT correct?

A    Defects are identified and corrected during the review meeting.

B    Reviews focus on the work product, not the author.

C    Every review should have clearly defined objectives.

D    Review participants share responsibility for achieving the review objectives.

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

Q13: Who typically uses static analysis tools?

A    Testers only

B    Developers only

C    Developers and testers

D    Project managers only

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

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

Q16: 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    Plan the scope of the review

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

A    Formal inspection

B    Dynamic testing

C    Code walkthrough

D    Execution testing

Q18: Who are the primary users of static analysis tools?

A    Customers and users

B    Developers and designers

C    Business analysts

D    End users

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

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

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

Q22: Arrange the following review activities in the correct order:

A    Planning → Review initiation (Kick-off) → Individual preparation → Review meeting → Rework → Follow-up

B    Planning → Review meeting → Individual preparation → Rework → Follow-up

C    Individual preparation → Planning → Review meeting → Rework → Follow-up

D    Planning → Individual preparation → Follow-up → Rework → Review meeting

Q23: During a review meeting, one reviewer is dominating the discussion. What should the moderator do?

A    Ask the reviewer to stop speaking immediately.

B    Wait for the reviewer to finish, acknowledge the comment, and invite other reviewers to share their opinions.

C    Present an opposing opinion to encourage debate.

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

Q24: What is the primary objective of an informal review?

A    Find defects

B    Produce formal review metrics

C    Approve the work product for release

D    Define coding standards

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

Q26: Which of the following can static analysis tools NOT determine?

A    Use of an uninitialized variable

B    Unreachable ("dead") code

C    Whether the software produces the correct output for a given input

D    Potential array bound violations

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

Q28: The Phases of formal review process is mentioned below arrange them in the correct order.
i. Planning
ii. Review Initiation
iii. Individual review
iv. Fixing and reporting
v. Communication and analysis

A    i,ii,iii,iv,v

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

C    i,ii,iii,v,iv

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

Q29: Which of the following are standard roles in a formal review?

i. Author
ii. Moderator
iii. Reviewer
iv. Recorder (Scribe)

A    i, ii and iii only

B    ii, iii and iv only

C    i, ii, iii and iv

D    i and iv only

Q30: 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 informal reviews

C    Static testing includes techniques such as reviews and inspections

D    Static testing can give measurements such as cyclomatic complexity

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

A    Moderator.

B    Recorder (Scribe)

C    Author

D    Manager

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

Q33: Which of the following is a key characteristic of a walkthrough?

A    It is led by the author, who explains the work product to the participants.

B    It requires a trained moderator and formal entry/exit criteria.

C    It always produces formal review metrics.

D    It is performed only using static analysis tools.

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

F    The correct answer is B. Selecting the personnel, allocating roles because during the review planning activity, the moderator or review leader identifies the participants and assigns roles such as author, moderator, reviewer, and recorder.

A. Explaining the objectives is incorrect because this is part of the Review Initiation (Kick-off) activity, where participants are briefed on the review objectives, scope, and process.
C. Follow up is incorrect because it is the final activity of th

Q35: In which phase static tests are used

A    Requirements

B    Design

C    Coding

D    All of the above

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

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

Q38: Which review type is the most formal and follows a structured process with defined roles, entry/exit criteria, and a trained moderator?

A    Inspection.

B    Walkthrough.

C    Technical Review

D    Informal Review

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

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

Q41: 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, Review initiation, Individual review, Communication and analysis, Fixing and reporting

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

A    2

B    3

C    4

D    5

Q43: Which of the following is a primary responsibility of the moderator in a review?

A    Recording review findings and action items

B    Facilitating the review meeting and resolving disagreements

C    Creating the work product under review

D    Approving the software for release

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

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

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

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

(a) Variables that are never used
(b) Programming standard violations
(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

Q48: 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
faults.

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

Q49: 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
up.

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

Q50: 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
testing.

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 |