ISTQB Practice Questions

A piece of code for an operating system contains 1,200 lines of code. The code contains a single IF statement that contains only an error display. There are no other conditional constructs in the code. How many test cases are required if the test organization requires the system to be tested to the 50% decision coverage limit and to 100% statement coverage?

Options are :

  • 4
  • 2
  • 1
  • 1200

Answer : 1

Explanation to achieve 100% statement coverage, then we need to pick a test case that would trigger the error display. This will lead to exercise all the statements in the code which also means that we have exercised the TRUE branch of the IF statement (and NOT the FALSE branch) which means we have 50% branch coverage. So only ONE test case in needed.

Why does the boundary value analysis provide good test cases?

Options are :

  • Because the test object is tested under maximal load up to its performance limits
  • Because it is an industry standard
  • Because only equivalence classes that are equal from a functional point of view are considered in the test cases
  • Because errors are frequently made during programming of the different cases near the 'edges' of the range of values

Answer : Because errors are frequently made during programming of the different cases near the 'edges' of the range of values

Explanation Answer "Because errors are frequently made during programming of the different cases near the 'edges' of the range of values" as mentioned in the boundary analysis lecture, programmers usually make the mistake of using > instead of >= or vise versa. that's why BVA provide good test cases to discover these kind of errors

What is the purpose of test completion criteria in a test plan
  • a) to know when a specific test has finished its execution
  • b) to ensure that the test case specification is complete
  • c) to set the criteria used in generating test inputs
  • d) to know when test planning is complete
  • e) to plan when to stop testing
A metric that tracks the number of test cases executed is gathered during which activity in the test process?

Options are :

  • Planning
  • Execution
  • Implementation
  • Reporting

Answer : Execution

Explanation they gave you the answer :) "number of test cases executed" are in "execution"

The place to start if you want a (new) test tool is
  • a) Attend a tool exhibition
  • b) Invite a vendor to give a demo
  • c) Analyse your needs and requirements
  • d) Find out what your budget would be for the tool
  • e) Search the internet
A configuration management system would NOT normally provide:

Options are :

  • Linkage of customer requirements to version numbers.
  • Facilities to compare test results with expected results.
  • The precise differences in versions of software component source code.
  • Restricted access to the source code library

Answer : Facilities to compare test results with expected results.

Explanation "Facilities to compare test results with expected results." is not the responsibility of configuration management but rather a test comparator could be used for that.

Which of the following types of defects is use case testing MOST LIKELY to uncover? 

i) Defects in the process flows during real-world use of the system. 

ii) Defects in the interface parameters in integration testing. 

iii) Integration defects caused by the interaction and interference of different components. 

iv) Defects in the system as it transitions between one state and another.

Options are :

  • ii, iii.
  • iii, iv.
  • i, ii
  • i, iii.

Answer : i, iii.

Explanation this question is little tricky, because from the first look at it, all answers seem to be correct. So the way to solve such questions is to choose the option that's 100% correct and build on it (or the opposite), which is option (i) as it is directly related to the definition of the use case testing. so excluding all answers without option (i) . so we should evaluate options (ii) and (iii). both options are related to integration testing, but option (ii) is talking about "interface parameters" which is not related to use case testing where we just execute the system without customizing "interface parameters" so the answer would be i and iii to confirm our answer, option (iv) is not correct, because is talking about state transition testing which is not directly related to use case testing.

With which of the following categories is a test comparator tool USUALLY associated?

Options are :

  • Tool support for the management of testing and tests.
  • Tool support for static testing.
  • Tool support for performance and monitoring.
  • Tool support for test execution and logging.

Answer : Tool support for test execution and logging.

Explanation You use a comparator tool to compare expected results of running a test cases to the actual results. so correct answer is "Tool support for test execution and logging."

The main focus of acceptance testing is

  • a) finding faults in the system
  • b) ensuring that the system is acceptable to all users
  • c) testing the system with other systems
  • d) testing for a business perspective
  • e) testing by an independent test team
What is the KEY difference between preventative and reactive approaches to testing?

Options are :

  • Preventative tests and reactive tests are designed as early as possible.
  • Preventative tests are designed early; reactive tests are designed after the software has been produced.
  • Preventative tests are designed after the software has been produced; reactive tests are designed early in response to review comments.
  • Preventative testing is always analytical; reactive testing is always heuristic.

Answer : Preventative tests are designed early; reactive tests are designed after the software has been produced.

Explanation the answer is "Preventative tests are designed early; reactive tests are designed after the software has been produced." preventive approaches to testing is anything we need to do to prevent or ensure that the software doesn't have any defects. reactive testing is anything we need to do if we found any defects in the software. the 2 terms are not really used in the ISTQB curriculum.

The software engineer's role in tool selection is

Options are :

  • To use the tools selected by management
  • To identify, evaluate, and rank tools, and recommend tools to management
  • To initiate the tool search and present a case to management
  • To determine what kind of tool is needed, then find it and buy it

Answer : To identify, evaluate, and rank tools, and recommend tools to management

Explanation The software engineer's role in tool selection is to identify, evaluate, and rank tools, and recommend tools to management

Which testing technique do you prefer for the following situations? 

1. Severe time pressure 

2. Inadequate specification

Options are :

  • Decision testing
  • Exploratory Testing
  • Error guessing
  • Statement testing

Answer : Exploratory Testing

Explanation As mentioned in the ISTQB syllabus, Exploratory Testing is the best practice to consider when you have either Severe time pressure or Inadequate specification

Which of the following statements about the component testing standard is false

  • a) black box design techniques all have an associated measurement technique
  • b) white box design techniques all have an associated measurement technique
  • c) cyclomatic complexity is not a test measurement technique
  • d) black box measurement techniques all have an associated test design technique
  • e) white box measurement techniques all have an associated test design technique

Given the following code snippet, how many test cases would we need to get 100% decision coverage? Each of the following functions simply prints and returns: 

Options are :

  • 0
  • 1
  • 2
  • 4

Answer : 1

Explanation There are no IF statements in this code, so passing through the statements ONCE would be enough to achieve 100%decision coverage. So only one test case is needed.

Which of the following is LEAST likely to be included in an incident report?

Options are :

  • Degree of impact on stakeholder interests.
  • Date the incident was discovered.
  • Suggestions for correcting the problem
  • Life cycle process in which the incident was discovered

Answer : Suggestions for correcting the problem

Explanation I don't think it is a common practice to see suggestions of solving the bug in the bug report. fixing the bug is the author's responsibility, and it's recommended not to influence the author so that he can think of the fix more clearly. actually from my practical experience, suggestions like this could start a war between testers and developers. As for the impact of the bug, according to IEEE 829, providing the impact and severity of the bug is important to help measure the risk of each bug.

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
A typical commercial test execution tool would be able to perform all of the following EXCEPT:

Options are :

  • generating expected outputs
  • replaying inputs according to a programmed script
  • comparison of expected outcomes with actual outcomes
  • recording test inputs

Answer : generating expected outputs

Explanation To answer this question, we have to ask ourselves what kind of tool that can perform each action. generating expected outputs would be a test design tool .. we are still generating the output , so we are still designing the test case. so this is the correct answer The remaining actions are actions of a test execution tool.

Testware(test cases, test dataset)

Options are :

  • should be newly constructed for each new version of the software
  • does not need to be documented and commented, as it does not form part of the released
  • needs configuration management just like requirements, design and code
  • is needed only until the software is released into production or use

Answer : needs configuration management just like requirements, design and code

Explanation Testware needs configuration management just like requirements, design and code. B - wrong, we can use test ware from an older version C - wrong we need to keep it in case we need to do maintenance D wrong

A typical commercial test execution tool would be able to perform all of the following EXCEPT

  • a) generating expected outputs
  • b) replaying inputs according to a programmed script
  • c) comparison of expected outcomes with actual outcomes
  • d) recording test inputs
  • e) reading test values from a data file

Some tools are geared more for developer use. For the 5 tools listed, which statement BEST details those for developers 

i) Performance testing tools. 

ii) Coverage measurement tools. 

iii) Test comparators. 

iv) Dynamic analysis tools. 

v) Incident management tools.

Options are :

  • ii. and iv. are more for developers.
  • ii. and iii. are more for developers.
  • i, iii. and iv. are more for developers.
  • ii, iii and iv. are more for developers

Answer : ii. and iv. are more for developers.

Explanation Coverage measurement tools and dynamic analysis are used by developers. The remaining tools are used by testers.

Which of the following are key success factors to the review process?

Options are :

  • Each review has a clear objective, the right people are involved, training is provided in the review technique and management fully support the process
  • Every team member will be involved, all review techniques are used on every work product and test managers control the review process
  • Participants are trained, all review meetings are time boxed and moderators are project managers
  • Review time is allowed in the test execution schedule, process improvement is recognized in the follow up meeting and the objective is always to find defects

Answer : Each review has a clear objective, the right people are involved, training is provided in the review technique and management fully support the process

Explanation Each review has a clear objective, the right people are involved, training is provided in the review technique and management fully support the process. - Review objective could be any thing and not always to find defects. - Participants don't need to be all trained and moderators don't need to be project managers. - Not Every team member need to be involved.

The difference between re-testing and regression testing is
  • a) re-testing is running a test again; regression testing looks for unexpected side effects
  • b) re-testing looks for unexpected side effects; regression testing is repeating those tests
  • c) re-testing is done after faults are fixed; regression testing is done earlier
  • d) re-testing uses different environments, regression testing uses the same environment
  • e) re-testing is done by developers, regression testing is done by independent testers
  • Which of the following statements is true?

    Options are :

    • A test condition specifies input values and expected results; a test case combines one or more test conditions
    • A test case specifies input values and expected results; a test procedure may be derived from requirements or specifications
    • A test condition may be derived from requirements or specifications; a test procedure specifies the sequence of action for the execution of a test
    • A test case specifies the sequence of execution of test conditions; a test procedure specifies test pre-conditions and post-conditions

    Answer : A test condition may be derived from requirements or specifications; a test procedure specifies the sequence of action for the execution of a test

    Explanation A test condition may be derived from requirements or specifications; a test procedure specifies the sequence of action for the execution of a test. A test case specifies input values and expected results.

    Expected results are

    • a) only important in system testing
    • b) only used in component testing
    • c) never specified in advance
    • d) most useful when specified in advance
    • e) derived from the code
    Which of the following is a MAJOR task of test planning?

    Options are :

    • Scheduling test analysis and design tasks.
    • Measuring and analyzing results.
    • Initiating corrective actions.
    • Monitoring progress and test coverage.

    Answer : Scheduling test analysis and design tasks.

    Explanation "Scheduling test analysis and design tasks." is done during planning but the remaining tasks are done during Test monitoring and control

    A system requires 100% decision coverage at component testing for all modules. The following module has been tested with a single test case. The test case follows the path A, B, D, E, F, G. What level of decision coverage has been achieved?


    Options are :

    • 75%
    • 50%
    • 90%
    • 100%

    Answer : 50%

    Explanation according to the graph, There're 2 if statements... A and D .. with 4 branches the test case A, B, D, E, F, G will go through 2 branches out of the 4 branches.. so 2/4 = 50%

    Test managers should not

    • a) report on deviations from the project plan
    • b) sign the system off for release
    • c) re-allocate resource to meet original plans
    • d) raise incidents on faults that they have found
    • e) provide information for risk analysis and quality improvement
    The __________ testing is performed at the developing organization’s site

    Options are :

    • Alpha testing
    • Integration testing
    • Regression Testing
    • Unit testing

    Answer : Alpha testing

    Explanation The Alpha testing is performed at the developing organization’s site

    Which of the following can be root cause of a bug in a software product? 

    (I) The project had incomplete procedures for configuration management. 

    (II) The time schedule to develop a certain component was cut. 

    (III) The specification was unclear 

    (IV) Use of the code standard was not followed up 

    (V) The testers were not certified

    Options are :

    • (III) through (V) are correct
    • (I) through (IV) are correct
    • (I), (II) and (IV) are correct
    • (I) and (II) are correct

    Answer : (I) through (IV) are correct

    Explanation (V) is for sure out of the question because testers mistakes can not add new bugs. (III) is for sure a cause to add a bug to the software.. so we are left with the correct answer "(I) through (IV) are correct" (Notice the "through") now let's confirm our answer, would "incomplete procedures for configuration management" cause a bug in the software...yes.. because this might cause us to use a wrong version of any file to build the software. would "The time schedule to develop a certain component was cut" cause a bug, ... yes .. because that would mean that the implementation is not complete especially if we haven't agreed with the customer on this. would "Use of the code standard was not followed up" ... yes .. the software would be still right from the functional point of view .. but it would have a bug from the non-functional point of view because using the wrong coding standard would make the code not "maintainable".

    Unreachable code would best be found using

    • a) code reviews
    • b) code inspections
    • c) a coverage tool
    • d) a test management tool
    • e) a static analysis tool
    Which of the following pairs of factors is used to quantify risks?

    Options are :

    • Product and Project
    • Likelihood and Impact
    • Probability and Likelihood
    • Impact and Cost

    Answer : Likelihood and Impact

    Explanation Likelihood and Impact are the 2 factors is used to quantify risks Probability is the same as Likelihood Level of Risk = Likelihood x Impact

    An estimate of resources should be made so that an organization can create a schedule for testing. Which of the following approaches can be used for creating an estimate? 

    I. A skills-based approach, in which the estimate is based on all the testers’ skills. 

    II. An expert-based approach, in which the owner or other expert creates the estimate. 

    III. A metrics-based approach, in which the estimate is based on previous testing efforts. 

    IV. A bottom-up approach, in which each tester estimates their work and all estimates are integrated.

    Options are :

    • I and IV
    • II and III
    • I, III, and IV
    • II, III, and IV

    Answer : II and III

    Explanation Only expert-based and metrics based are estimation techniques. So correct answer is "II and III"

    Which one of the following is true of software development models?

    Options are :

    • In Agile development models, the number of test levels for an iteration can vary depending on the project.
    • There are always four test levels in the V-model.
    • There must be at least four test levels for any software development model.
    • In a Rapid Application Development (RAD) project, there are four test levels for each iteration.

    Answer : In Agile development models, the number of test levels for an iteration can vary depending on the project.

    Explanation In Agile development models, the number of test levels for an iteration can vary depending on the project.

    A tool that supports traceability, recording of incidents or scheduling of tests is called

    • a) a dynamic analysis tool
    • b) a test execution tool
    • c) a debugging tool
    • d) a test management tool
    • e) a configuration management tool
    Is the activity where general testing objectives are transformed into tangible test conditions and test designs

    Options are :

    • Test Control
    • Test implementation
    • Test Analysis and design
    • Test planning

    Answer : Test Analysis and design

    Explanation we create test conditions and test cases during the Analysis and design activity

    A system under development contains complex calculations and decision logic, and it is assessed as high risk because of the relative inexperience of the development team in the application domain. Which of the following would be the MOST appropriate choice of test design technique for component testing

    Options are :

    • Equivalence partitioning
    • Statement testing
    • State transition testing
    • Decision testing

    Answer : Decision testing

    Explanation decision testing is more powerful than statement. equivalence is weak compared to boundary and there's no mentions of states in the question. so decision testing is the most powerful here

    Which of the following is TRUE?

    Options are :

    • Confirmation testing and Regression testing are both testing to establish whether any defects have been introduced as a result of changes.
    • Confirmation testing is testing to establish whether any defects have been introduced as a result of changes and Regression testing is testing fixes to a set of defects.
    • Confirmation testing and Regression testing are both testing fixes to a set of defects.
    • Confirmation testing is testing fixes to a set of defects and Regression testing is testing to establish whether any defects have been introduced as a result of changes

    Answer : Confirmation testing is testing fixes to a set of defects and Regression testing is testing to establish whether any defects have been introduced as a result of changes

    Explanation Confirmation testing is testing fixes to a set of defects and Regression testing is testing to establish whether any defects have been introduced as a result of changes

    What information need not be included in a test incident report

    • a) how to fix the fault
    • b) how to reproduce the fault
    • c) test environment details
    • d) severity, priority
    • e) the actual and expected outcomes

    Which of the following are characteristic of test management tools? 

    a. They support traceability of tests to source documents. 

    b. They provide an interface to test execution tools. 

    c. They help to enforce coding standards. 

    d. They manipulate databases and files to set up test data.

    Options are :

    • b and c
    • a and b
    • b and d
    • a and c

    Answer : a and b

    Explanation a. They support traceability of tests to source documents. (correct, through configuration management tools) b. They provide an interface to test execution tools. (correct, through test management tools) c. They help to enforce coding standards. (this is more related to static testing) d. They manipulate databases and files to set up test data. (this is related to test data preparation tools)



    ISTQB Questions
    ISTQB Questions 1
    ISTQB Questions 2
    ISTQB Questions 3
    ISTQB Questions 4
    ISTQB Questions 5
    ISTQB Questions 6
    ISTQB Questions 7

    Comment / Suggestion Section
    Point our Mistakes and Post Your Suggestions

    Protractor Training

    new tutorial I am starting new Protractor training batch on Weekends. It is two days course from 01-june-2019 to 02-june-2019 based on class room (BANGALORE)

    Interested people can confirm the seat by calling to +91 8971673487 or whatsapp to +91 9003381224

    Find the course content : View Content