Tuesday, September 01, 2015

ISTQB Foundation Sample Question Paper No. 23

Q. 1: For software to be reliable it must:

A. Be easy to maintain.
B. Be unlikely to cause a failure.
C. Never fail under any circumstances.
D. Be written according to coding standards

Q. 2: In a system designed to work out the tax to be paid: An employee has $4000 of salary tax free. The next $1500 is taxed at 10% The next $28000 is taxed at 22% Any further amount is taxed at 40% To the nearest $ which of these is a valid Boundary Value Analysis test case?
A. $1500
B. $32001
C. $28000
D. $33501

Q. 3: Faults found by users are due to:
A. Poor quality software
B. Poor software and poor testing
C. Bad luck
D. Insufficient time for testing

Q. 4: An incident logging system
A. Only records defects
B. Is of limited value
C. Is a valuable source of project information during testing if it contains all incidents
D. Should be used only by the test team.

Q. 5: The later in the development life cycle a fault is discovered, the more expensive it is to fix. Why?
A. The documentation is poor, so it takes longer to find out what the software is doing.
B. Wages are rising
C. The fault has been built into more documentation, code, tests, etc.
D. None of the above

Q. 6: Which of the following is true?
A. Component testing should be black box, system testing should be white box.
B. If u find a lot of bugs in testing, you should not be very confident about the quality of software
C. The fewer bugs you find, the better your testing was
D. The more tests you run, the more bugs you will find.

Q. 7: If the pseudo code below were a programming language ,how many tests are required to achieve 100% statement coverage?
1. If x=3 then
2. Display_messageX;
3. If y=2 then
4. Display_messageY;
5. Else
6. Display_messageZ;
7. Else
8. Display_messageZ;
A. 1
B. 2
C. 3
D. 4

Q. 8: Software testing activities should start
A. As soon as the code is written
B. During the design stage
C. When the requirements have been formally documented
D. As soon as possible in the development life cycle

Q. 9: Using the same code example as question 17,how many tests are required to achieve 100% branch/decision coverage?
A. 1
B. 2
C. 3
D. 4

Q. 10: A test design technique is
A. A process for selecting test cases
B. A process for determining expected outputs
C. A way to measure the quality of software
D. A way to measure in a test plan what has to be done

Q. 11: What is the main reason for testing software before releasing it?
A. To show that system will work after release
B. To decide when the software is of sufficient quality to release
C. To find as many bugs as possible before release
D. To give information for a risk based decision about release

Q. 12: Testware(test cases, test dataset)
A. Needs configuration management just like requirements, design and code
B. Should be newly constructed for each new version of the software
C. Is needed only until the software is released into production or use
D. Does not need to be documented and commented, as it does not form part of the
released software system
Q. 13: Which of the following is NOT a standard related to testing?
A. IEEE829
B. IEEE610
C. BS7925-1
D. BS7925-2

Q. 14: In which order should tests be run?
A. The most important tests first
B. The most difficult tests first(to allow maximum time for fixing)
C. The easiest tests first (to give initial confidence)
D. The order they are thought of

Q. 15: A program validates a numeric field as follows:
Values less than 10 are rejected, values between 10 and 21 are accepted, values greater than or equal to 22 are rejected. Which of the following covers the MOST boundary values?
A. 9,10,11,22
B. 9,10,21,22
C. 10,11,21,22
D. 10,11,20,21

Q. 16: Which of the following is not the integration strategy?
A. Design based
B. Big-bang
C. Bottom-up
D. Top-down

Q. 17: Which of the following tools would you use to detect a memory leak?
A. State analysis
B. Coverage analysis
C. Dynamic analysis
D. Memory analysis

Q. 18: Which of the following statements are true?
A. Faults in program specifications are the most expensive to fix.
B. Faults in code are the most expensive to fix.
C. Faults in requirements are the most expensive to fix
D. Faults in designs are the most expensive to fix.

Q. 19: Increasing the quality of the software, by better development methods, will affect the time needed for testing (the test phases) by:
A. Reducing test time
B. No change
C. Increasing test time
D. Can’t say
Q. 20: Which of the following is a black box design technique?
A. Statement testing
B. Equivalence partitioning
C. Error- guessing
D. Usability testing

Q. 21: When reporting faults found to developers, testers should be:
A. As polite, constructive and helpful as possible
B. Firm about insisting that a bug is not a "feature" if it should be fixed
C. Diplomatic, sensitive to the way they may react to criticism
D. All of the above

Q. 22: Which of the following statements is not true
A. Performance testing can be done during unit testing as well as during the testing of whole system
B. The acceptance test does not necessarily include a regression test
C. Verification activities should not involve testers (reviews, inspections etc)
D. Test environments should be as similar to production environments as possible

Q. 23: What is the important criterion in deciding what testing technique to use?
A. How well you know a particular technique
B. The objective of the test
C. How appropriate the technique is for testing the application
D. Whether there is a tool to support the technique

Q. 24: When should you stop testing?
A. When time for testing has run out.
B. When all planned tests have been run
C. When the test completion criteria have been met
D. When no faults have been found by the tests run

Q. 25: Coverage measurement
A. Is nothing to do with testing
B. Is a partial measure of test thoroughness
C. Branch coverage should be mandatory for all software
D. Can only be applied at unit or module testing, not at system testing

Q. 26: Which of the following is NOT a type of non-functional test?
A. State-Transition
B. Usability
C. Performance
D. Security

Q. 27: Which of the following is the component test standard?
A. IEEE 829
B. IEEE 610
C. BS7925-1
D. BS7925-2

Q. 28: A program validates a numeric field as follows:
Values less than 10 are rejected, values between 10 and 21 are accepted, values greater than orequal to 22 are rejected. Which of the following input values cover all of the equivalence
partitions?
A. 10,11,21
B. 3,20,21
C. 3,10,22
D. 10,21,22

Q. 29: Which is not true-The black box tester
A. Should be able to understand a functional specification or requirements document
B. Should be able to understand the source code.
C. Is highly motivated to find faults
D. Is creative to find the system’s weaknesses

Q. 30: Which of the following is a static test?
A. Code inspection
B. Coverage analysis
C. Usability assessment
D. Installation test

Q. 31: A program with high cyclometic complexity is almost likely to be:
A. Large
B. Small
C. Difficult to write
D. Difficult to test

Q. 32: Which of the following is the odd one out?
A. White box
B. Glass box
C. Structural
D. Functional

Q. 33: Which of the following techniques are black box techniques?
A. State transition testing, code testing, agile testing
B. Equivalence partitioning, state transition testing, decision table testing
C. System testing, acceptance testing, equivalence partitioning
D. System integration testing, system testing, decision table testing
Q. 34: A number of critical bugs are fixed in software. All the bugs are in one module, related to reports. The test manager decides to do regression testing only on the reports module.
A. The test manager should do only automated regression testing.
B. The test manager is justified in her decision because no bug has been fixed in other modules
C. The test manager should only do confirmation testing. There is no need to do regression testing
D. Regression testing should be done on other modules as well because fixing one module may affect other modules

Q. 35: Which of the following statements contains a valid goal for a functional test set?
A. A goal is that no more failures will result from the remaining defects
B. A goal is to find as many failures as possible so that the cause of the failures can be identified and fixed
C. A goal is to eliminate as much as possible the causes of defects
D. A goal is to fulfil all requirements for testing that are defined in the project plan.

Q. 36: What makes an inspection different from other review types?
A. It is led by a trained leader, uses formal entry and exit criteria and checklists
B. It is led by the author of the document to be inspected
C. It can only be used for reviewing design and code
D. It is led by the author, uses checklists, and collects data for improvement

Q. 37: Why does the boundary value analysis provide good test cases?
A. Because it is an industry standard
B. Because errors are frequently made during programming of the different cases near the
‘edges’ of the range of values
C. Because only equivalence classes that are equal from a functional point of view are considered in the test cases
D. Because the test object is tested under maximal load up to its performance limits
Q. 38: If a program is tested and 100% branch coverage is achieved, which of the following
coverage criteria is then guaranteed to be achieved?
A. 100% Equivalence class coverage
B. 100% Condition coverage and 100% Statement coverage
C. 100% Statement coverage
D. 100% Multiple condition coverage
Q. 39: A defect management system shall keep track of the status of every defect registered and
enforce the rules about changing these states. If your task is to test the status tracking, which
method would be best?
A. Logic-based testing
B. Use-case-based testing
C. State transition testing
D. Systematic testing according to the V-model
Q. 40: In system testing...
A. Both functional and non-functional requirements are to be tested
B. Only functional requirements are tested; non-functional requirements are validated in a
review
C. Only non-functional requirements are tested; functional requirements are validated in a review
D. Only requirements which are listed in the specification document are to be tested
Answers:
Q.1-B
Q.2-D
Q.3-B
Q.4-C
Q.5-C
Q.6-B
Q.7-C
Q.8-D
Q.9-C
Q.10-A
Q.11-D
Q.12-A
Q.13-B
Q.14-A
Q.15-B
Q.16-A
Q.17-C
Q.18-C
Q.19-A
Q.20-B
Q.21-D
Q.22-C
Q.23-B
Q.24-C
Q.25-B
Q.26-A
Q.27-D
Q.28-C
Q.29-B
Q.30-A
Q.31-D
Q.32-D
Q.33-B
Q.34-D
Q.35-B
Q.36-A
Q.37-B
Q.38-B
Q.39-C

Q.40-A

ISTQB Foundation Sample Question Paper No. 22

Q. 1: Test planning has which of the following major tasks?

i. Determining the scope and risks, and identifying the objectives of testing.
ii. Determining the test approach (techniques,test items, coverage, identifying and
interfacing the teams involved in testing , testware)
iii. Reviewing the Test Basis (such as requirements,architecture,design,interface)
iv. Determining the exit criteria.
A. i,ii,iv are true and iii is false
B. i,,iv are true and ii is false
C. i,ii are true and iii,iv are false
D. ii,iii,iv are true and i is false

Q. 2: Deciding How much testing is enough should take into account :-
i. Level of Risk including Technical and Business product and project risk ii. Project constraints
such as time and budget
iii. Size of Testing Team
iv. Size of the Development Team
A. i,ii,iii are true and iv is false
B. i,,iv are true and ii is false
C. i,ii are true and iii,iv are false
D. ii,iii,iv are true and i is false

Q. 3: Which of the following will be the best definition for Testing:
A. The goal / purpose of testing is to demonstrate that the program works.
B. The purpose of testing is to demonstrate that the program is defect free.
C. The purpose of testing is to demonstrate that the program does what it is supposed to
do.
D. Testing is executing Software for the purpose of finding defects.

Q. 4: Minimum Tests Required for Statement Coverage and Branch Coverage:
Read P Read Q
If p+q > 100 then
Print "Large" End if
If p > 50 then Print "pLarge" End if
A. Statement coverage is 2, Branch Coverage is 2
B. Statement coverage is 3 and branch coverage is 2
C. Statement coverage is 1 and branch coverage is 2
D. Statement Coverage is 4 and Branch coverage is 2

Q. 5: Match every stage of the software Development Life cycle with the Testing Life cycle:
i. Hi-level design a Unit tests ii. Code b Acceptance tests
iii. Low-level design c System tests
iv. Business requirements d Integration tests
A. i-d , ii-a , iii-c , iv-b
B. i-c , ii-d , iii-a , iv-b
C. i-b , ii-a , iii-d , iv-c
D. i-c , ii-a , iii-d , iv-b

Q. 6: Which of the following is a part of Test Closure Activities?
i. Checking which planned deliverables have been delivered
ii. Defect report analysis.
iii. Finalizing and archiving testware.
iv. Analyzing lessons.
A. i , ii , iv are true and iii is false
B. i , ii , iii are true and iv is false
C. i , iii , iv are true and ii is false
D. All of above are true

Q. 7: Which of the following is NOT part of a high level test plan?
A. Functions not to be tested.
B. Environmental requirements.
C. Analysis of Specifications.
D. Entry and Exit criteria.

Q. 8: If a candidate is given an exam of 40 questions, should get 25 marks to pass
(61%) and should get 80% for distinction, what is equivalence class.
A. 23, 24, 25
B. 0, 12, 25
C. 30, 36, 39
D. 32,37,40

Q. 9: Which of the following statements is true of static analysis:
A. Compiling code is not a form of static analysis.
B. Static analysis need not be performed before imperative code is executed.
C. Static analysis can find faults that are hard to find with dynamic testing.
D. Extensive statistic analysis will not be needed if white- Box testing is to be performed.

Q. 10: In a system designed to work out the tax to be paid: An employee has $4000 of salary tax free. The next $1500 is taxed at 10% The next $28000 is taxed at 22% Any further amount is taxed at 40% Which of these groups of numbers would fall into the same equivalence class?
A. $5800; $28000; $32000
B. $0; $200; $4200
C. $5200; $5500; $28000
D. $28001; $32000; $35000

Q. 11: Cost of the reviews will not include.
A. Review process itself
B. Metrics analysis
C. Tool support.
D. Process improvement.

Q. 12: Regression testing always involves
A. Testing whether a known software fault been fixed. B. Executing a large number of different tests.
C. Testing whether modifications have introduced adverse side effects.
D. Using a test automation tool.

Q. 13: Capture and replay facilities are least likely to be used to
A. Performance testing
B. Recovery testing
C. GUI testing
D. User requirements.

Q. 14: Which tool will be used to test the flag memory leaks and unassigned pointers
A. Dynamic analysis tool
B. Static Analysis tool.
C. Maintenance tool.
D. Configuration tool.

Q. 15: Cyclomatic complexity is used to calculate
A. Number of independent paths in the basis set of a program
B. Number of binary decisions + 1
C. Number bound for the number of tests that must be conducted to ensure that all statements have been executed at least once
D. Number of branches and decisions

Q. 16: Which of the following is not included in Test Plan.
A. Features to be tested.
B. Environmental needs.
C. Suspension criteria.
D. Expected results.

Q. 17: Software quality is not relevant to
A. Correctness
B. Usability
C. Viability
D. Reusability.

Q. 18: Match the following:
1. Test estimation
2. Test control
3. Test monitoring
a. Measures of tracking process
b. Effort required to perform activities
c. Reallocation of resources
A. 1-b, 2-c, 3-a
B. 1-b, 2-a, 3-c
C. 1-c, 2-a, 3-b
D. 1-a, 2-b, 3-c

Q. 19: When do you stop testing?
A. When the specified number of faults are found.
B. When the test completion criteria are met.
C. When all high and medium priority tests are complete.
D. When all statements have been executed

Q. 20: What is the smallest number of test cases required to Provide 100% branch coverage?
If(x>y) x=x+1;
else y=y+1;
while(x>y)
{
y=x*y; x=x+1;
}
A. 1
B. 2
C. 3
D. 4

Q. 21: Match the following.
1. Configuration identification
2. Configuration control
3. Status reporting
4. Configuration auditing
a. Maintains of CI’s in a library
b. Checks on the contents of the library
c. Function recording and tracking problems.
d. Requires the all CI’s and their versions in the system are known
A. 1-d, 2-c, 3-d, 4-a. B. 1-d, 2-a, 3-c, 4-b. C. 1-a, 2-b, 3-d, 4-c. D. 1-c, 2-b, 3-a, 4-d.

Q. 22: Integration testing in the large involves:
A. Testing the system when combined with other systems.
B. Testing a sub-system using stubs and drivers.
C. Testing a system with a large number of users.
D. Combing software components and testing them in one go.

Q. 23: One of the following is not a part of white box testing as per BS7925-II
standards.
A. Random testing
B. Data Flow testing.
C. Statement testing.
D. Syntax testing.

Q. 24: A piece of software has been given what tests in the Following will you perform?
1) Test the areas most critical to business processes
2) Test the areas where faults will be maximum
3) Test the easiest functionalities
A. 1&2 are true and 3 is false.
B. 1,2&3 are true.
C. 1 is true, 2&3 are false.
D. 1&2 are false, 3 is true

Q. 25: Which of the following is a type of non-functional testing?
A. Usability testing.
B. Statement Coverage.
C. Dataflow testing.
D. Cause-effect graphing.

Q. 26: What type of testing will you perform on internet banking solution?
A. System integration
B. Functional testing
C. Non-functional testing.
D. Requirements testing

Q. 27: Which of the following are false?
A. Incidents should always be investigated and resolved.
B. Incidents occur when expected and actual results differ.
C. Incidents can be analyzed to assist in test process improvement.
D. An incident can be raised against documentation.

Q. 28: Testing is not done to
A. Find faults
B. Improve quality
C. Check user friendliness.
D. Improve software accuracy

Q. 29: A field failure occurs when multiple users access a system. Which of the following is true?
A. This is an acceptable risk of a multi-user system.
B. Insufficient functional testing has been performed.
C. This indicates an important non-functional requirement was not specified and tested.
D. It is not possible to test against such events prior to release.

Q. 30: People who don’t participate in technical reviews
A. Analysts
B. Management
C. Developers
D. Testers

Q. 31: What is failure?
A. Deviation from expected result to actual result
B. Defect in the software.
C. Error in the program code. D. Fault in the system.

Q. 32: Exclusive use of white box testing in a test-phase will:
A. Ensure the test item is adequately tested.
B. Make the need for black-box testing redundant.
C. Run the risk that the requirements are not satisfied.
D. Suffices for the unit testing phase.

Q. 33: Which of the following is least important in test management?
A. Estimating test duration.
B. Incident Management.
C. Configuration Management.
D. De-bugging.

Q. 34: A standard for software testing terminology is:
A. IEEE 802.11
B. ISO 9001
C. BS 7925-1
D. BS 7925-2

Q. 35: Which of the following is NOT a characteristic of User Acceptance Testing?
A. Use of automated test execution tools.
B. Testing performed by users.
C. Testing against acceptance test criteria.
D. Integration of system with user documentation.

Q. 36: Which of the following provides the biggest potential cost saving from use of
CAST?
A. Test management
B. Test design
C. Test planning
D. Test execution
Q. 37: What type of testing is done to supplement the rigorous testing?
A. Regression testing.
B. Integration testing.
C. Error Guessing
D. System testing.

Q. 38: To make a test effective it is most important that:
A. It is easy to execute.
B. It is designed to detect faults if present.
C. The expected outcome is specified before execution.
D. It is unlikely to delay progress.

Q. 39: Error guessing is:
A. An appropriate way of deriving system tests.
B. Only used if good requirements are not available.
C. Only used when good requirements are available.
D. The most appropriate way of deriving system tests.

Q. 40: Amount of testing performed will not depend on
A. Risks involved
B. Contractual requirements
C. Legal requirements
D. Test data.

Answers:
Q.1-A
Q.2-C
Q.3-D
Q.4-C
Q.5-D
Q.6-C
Q.7-C
Q.8-D
Q.9-A
Q.10-A
Q.11-C
Q.12-C
Q.13-D
Q.14-A
Q.15-B
Q.16-D
Q.17-C
Q.18-A
Q.19-B
Q.20-B
Q.21-B
Q.22-A
Q.23-D
Q.24-A
Q.25-A
Q.26-C
Q.27-C
Q.28-D
Q.29-C
Q.30-B
Q.31-A
Q.32-C
Q.33-D
Q.34-C
Q.35-A
Q.36-D
Q.37-C
Q.38-C
Q.39-D

Q.40-D