Minimum Tests Required for Statement Coverage and Branch Coverage :-
Read P
Read Q
If p+q > 100
thenPrint “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

1 Answer

Answer :

c) Statement coverage is 1 and branch coverage is 2

Related questions

Description : Minimum Test Required for Statement Coverage :- Disc = 0 Order-qty = 0 Read Order-qty If Order-qty >=20 then Disc = 0.05 If Order-qty >=100 then Disc =0.1 End if End if a) Statement coverage is 4 b) Statement coverage is 1

Last Answer : b) Statement coverage is 1

Description : Consider the following statements: i. 100% statement coverage guarantees 100% branch coverage. ii. 100% branch coverage guarantees 100% statement coverage. iii. 100% branch coverage guarantees 100% decision coverage. iv. 100% decision ... & v are False d) ii, iii & iv are True; i & v are False

Last Answer : d) ii, iii & iv are True; i & v are False

Description : Path coverage includes A. Statement coverage B. Condition coverage C. Decision coverage D. None of the above

Last Answer : C. Decision coverage

Description : In case of Large Systems :- a) Only few tests should be run b) Testing should be on the basis of Risk c) Only Good Test Cases should be executed. d) Test Cases written by good test engineers should be executed.

Last Answer : b) Testing should be on the basis of Risk

Description : Acceptance tests are normally conducted by the A. Developer B. End usersC. Test team D. Systems engineers

Last Answer : B. End users

Description : Exit Criteria may consist of :- i. Thoroughness measures , such as coverage of code, functionality or risk ii. Estimates of Defect density or reliability measures. iii. Residual risk such as defects not fixed or ... correct and i,ii,iii are incorrect d) iii and iv are correct and i,ii are incorrect

Last Answer : b) i,ii,iii is correct and iv is incorrect

Description : Which technique can be used to achieve input and output coverage? It can be applied to human input, input via interfaces to a system, or interface parameters in integration testing. A. Error Guessing B. Boundary Value Analysis C. Decision Table testing D. Equivalence partitioning

Last Answer : D. Equivalence partitioning

Description : Which technique can be used to achieve input and output coverage? It can be applied to human input, input via interfaces to a system, or interface parameters in integration testing. a) Error Guessing b) Boundary Value Analysis c) Decision Table testing d) Equivalence partitioning

Last Answer : d) Equivalence partitioning

Description : Coverage based analysis is best described as: A. A metric used to show the logic covered during a test session providing insight to the extent of testing. B. A tool for documenting the unique ... their status through to resolution. D. The most traditional means for analyzing a system or a program

Last Answer : A. A metric used to show the logic covered during a test session providing insight to the extent of testing.

Description : Suggest an alternative for requirement traceability matrix A. Test Coverage matrix B. Average defect aging C. Test Effectiveness D. Error discovery rate

Last Answer : A. Test Coverage matrix

Description : Decision to stop testing should be based upon A. Successful use of specific test case design methodologies B. A percentage of coverage for each coverage category C. Rate of error detection falls below a specified threshold D. All of the above

Last Answer : D. All of the above

Description : Which document helps you to track test coverage? A. Traceability Matrix B. Test plan C. Test log

Last Answer : A. Traceability Matrix

Description : A wholesaler sells printer cartridges. The minimum order quantity is 5. There is a 20% discount for orders of 100 or more printer cartridges. You have been asked to prepare test cases using various values for the number of printer cartridges ... A. 5, 6, 20 B. 4, 5, 80C. 4, 5, 99 D. 1, 20, 100

Last Answer : C. 0, 1,10,11, 50, 51, 75, 76,100,101

Description : 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 ... i-b , ii-a , iii-d , iv-c d) i-c , ii-a , iii-d , iv-b

Last Answer : d) i-c , ii-a , iii-d , iv-b

Description : Which of the following statements is true about a software verification and validation program? I. It strives to ensure that quality is built into software. II. It provides management with insights into the state ... software development activities. A. I, II&III B.II, III&IV C.I, II&IV D.I, III&IV

Last Answer : C.I, II&IV

Description : Sources of regression test cases are A. Boundary tests and other pre planned tests. B. Tests that reveal bugs in the program C. Customer reported bugs D. All of the above

Last Answer : D. All of the above

Description : Alpha testing is differentiated from Beta testing by A. The location where the tests are conducted. B. The types of test conducted C. The people doing the testing D. The degree to which white box techniques are used

Last Answer : A. The location where the tests are conducted.

Description : Range of accelerating factor is a) 50 to 100 b) 1.3 to 1.7 c) 1 to 10 d) 10.8 to 11.2

Last Answer : b) 1.3 to 1.7

Description : Assume postal rates for 'light letters' are: $0.25 up to 10 grams; $0.35 up to 50 grams; $0.45 up to 75 grams; $0.55 up to 100 grams. Which test inputs (in grams) would be selected using boundary value analysis? A. 0, 9,19, ... C. 0, 1,10,11, 50, 51, 75, 76,100,101 D. 25, 26, 35, 36, 45, 46, 55, 56

Last Answer : C. 0, 1,10,11, 50, 51, 75, 76,100,101

Description : Testing where the system is subjected to large number of data, is A. System Testing B. Volume Testing C. Statistical testing D. Statement testing

Last Answer : B. Volume Testing

Description : f the temperature falls below 18 degrees, the heating is switched on. When the temperature reaches 21 degrees, the heating is switched off. What is the minimum set of test input values to cover all valid equivalence ... 17, 18, 20 and 21 degrees C. 18, 20 and 22 degrees D. 16 and 26 degrees

Last Answer : A. 15, 19 and 25 degrees

Description : In a Examination a candidate has to score minimum of 24 marks inorder to clear the exam. The maximum that he can score is 40 marks. Identify the Valid Equivalance values if the student clears the exam. A. 22,23,26 B. 21,39,40 C. 29,30,31 D. 0,15,22

Last Answer : C. 29,30,31

Description : The Cyclomatic Complexity, V(G) is given by which formula A. V(G) = e - n + 2 B. V(G) = e - 2n + P C. V(G) = e - 2n D. None of the above

Last Answer : A. V(G) = e - n + 2

Description : When testing a grade calculation system, a tester determines that all scores from 90 to 100 will yield a grade of A, but scores below 90 will not. This analysis is known as: A. Equivalence partitioning B. Boundary value analysis C. Decision table D. Hybrid analysis

Last Answer : A. Equivalence partitioning

Description : When testing a grade calculation system, a tester determines that all scores from 90 to 100 will yield a grade of A, but scores below 90 will not. This analysis is known as: A. Equivalence partitioning B. Boundary value analysis C. Decision table D. Hybrid analysis

Last Answer : B. Boundary value analysis

Description : ‘X’ has given a data on a person age, which should be between 1 to 99. Using BVA which is the appropriate one A. 0,1,2,99 B. 1, 99, 100, 98 C. 0, 1, 99, 100 D. –1, 0, 1, 99

Last Answer : C. 0, 1, 99, 100

Description : Functional system testing is: a) testing that the system functions with other systems b) testing that the components that comprise the system function together c) testing the end to end functionality of the system as a whole d) testing the system performs functions within specified response times

Last Answer : c) testing the end to end functionality of the system as a whole

Description : . One of the more daunting challenges of managing a test project is that so many dependencies converge at test execution. One missing configuration file or hard ware device can render all your test results ... incident? A. Test managers faults only B. Test lead faults only C. Test manager and proj

Last Answer : A. Test managers faults only

Description : Identify which one is a load condition A. Lost messages B. Task starts before its prerequisites are met. C. Lost or out of sync messages D. Early end of string

Last Answer : A. Lost messages

Description : Acceptance testing means A. Testing performed on a single stand - alone module or unit of code B. Testing after changes have been made to ensure that no unwanted changes were introduced C. ... the needs of the organization and end user. D. Users test the application in the developers environment

Last Answer : C. Testing to ensure that the system meets the needs of the organization and end user.

Description : Which testing methods are used by end-users who actually test software before they use it? A. Alpha & Beta Testing B. White Box Testing C. Black Box Testing D. Trial & Error Testing

Last Answer : A. Alpha & Beta Testing

Description : This life cycle model is basically driven by schedule and budget risks This statement is best suited for A. Water fall model B. Spiral model C. Incremental model D. V-Model Q33. The bug tracking ... these phases for each bug. I. Phase injected II. Phase detected III. Phase fixed IV. Phase removed

Last Answer : B. I, II and IV

Description : What are the four attributes to be present in any test problem?A. Statement, criteria, effect and cause B. Priority, fix, schedule and report C. Statement, fix effect and report D. None of the above.

Last Answer : A. Statement, criteria, effect and cause

Description : The following defines the statement of what the tester is expected to accomplish or validate during testing activity A. Test scope B. Test objective C. Test environment D. None of the above

Last Answer : B. Test objective

Description : The Provision and Management of a controlled library containing all the configurations items is called as a) Configuration Control b) Status Accounting c) Configuration Identification d) Configuration Identification

Last Answer : The provision and management of a controlled library containing all the configuration items is called Configuration Management. Configuration Management is the process of identifying, organizing, and ... Verification and Audit (ensuring that the configuration items are complete and accurate).

Description : Which of the following helps in monitoring the Test Progress:- i. Percentage of Test Case Execution ii. Percentage of work done in test environment preparation. iii. Defect Information e.g. defect density, ... ii,iii are correct and iv is incorrect c) i,ii are correct and iii,iv are incorrect

Last Answer : b) i,ii,iii are correct and iv is incorrect

Description : Drivers are also known as: i. Spade ii. Test harness iii. Scaffolding a) i , ii are true and iii is false b) i , iii are true and ii is false

Last Answer : c) ii , iii are true and i is false

Description : Which of the following is not a type of incremental testing approach? a) Top down b) Big-bang c) Bottom up d) Functional incrementation.

Last Answer : b) Big-bang

Description : 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 ... does what it is supposed to do. d) Testing is executing Software for the purpose of finding defects.

Last Answer : d) Testing is executing Software for the purpose of finding defects.

Description : 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 , ... false c) i , iii , iv are true and ii is false d) All of above are true

Last Answer : c) i , iii , iv are true and ii is false

Description : Which of the following is the task of a Test Lead / Leader: i. Interaction with the Test Tool Vendor to identify best ways to leverage test tool on the project. ii. Write Test Summary Reports based on the ... is true and ii,iii,iv are false d) iii and iv is correct and i and ii are incorrect

Last Answer : a) i, ii, iii is true and iv is false

Description : The structure of an incident report is covered in the Standard for Software Test Documentation IEEE 829 and is called as : - a) Anomaly Report b) Defect Report c) Test Defect Report d) Test Incident Report

Last Answer : a) Anomaly Report

Description : Benefits of Independent Testing a) Independent testers are much more qualified than Developers b) Independent testers see other and different defects and are unbiased. c) Independent Testers cannot identify defects. d) Independent Testers can test better than developers

Last Answer : b) Independent testers see other and different defects and are unbiased.

Description : Regression testing should be performed: i. every week ii. after the software has changed iii. as often as possible iv. when the environment has changed v. when the project manager says a) i & ii are true, iii, iv & v are ... iv are true, i, iii & v are false d) ii is true, i, iii, iv & v are false

Last Answer : c) ii & iv are true, i, iii & v are false

Description : Which of the following is true about White and Black Box Testing Technique:- a) Equivalance partitioning, Decision Table and Control flow are White box Testing Techniques. b) Equivalence partitioning ... , State Transition , Use Case Testing and Decision Table are White Box Testing Techniques.

Last Answer : c) Equivalence partitioning , State Transition , Use Case Testing are black box Testing Techniques.

Description : Test Conditions are derived from :- a) Specifications b) Test Cases c) Test Data d) Test Design

Last Answer : a) Specifications

Description : Defects discovered by static analysis tools include: i. Variables that are never used. ii. Security vulnerabilities. iii. Programming Standard Violations iv. Uncalled functions and procedures a) i , ii,iii,iv is correct b ... ,iv are incorrect. c) i ,ii, iii and iv are incorrect d) iv, ii is correct

Last Answer : a) i , ii,iii,iv is correct

Description : 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 ... and ii is incorrect c) i , iii , iv , ii is in correct d) ii is correct

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