Software Testing Mock Test
Software Testing Mock Test
Verification is:
a. Checking that we are building the right system
b. Checking that we are building the system right
c. Performed by an independent test team
d. Making sure that it is what the user really wants
1)- b
2. A regression test:
a. Will always be automated
b. Will help ensure unchanged areas of the software have not been affected
c. Will help ensure changed areas of the software have not been affected
d. Can only be run during user acceptance testing
2)- b
3)- c
4)- d
5)- b
6)- a
7)- d
8. During which test activity could faults be found most cost effectively?
a. Execution
b. Design
c. Planning
d. Check Exit criteria completion
8)- c
9) � b
10) � d
11) -b
12. The inputs for developing a test plan are taken from
a. Project plan
b. Business plan
c. Support plan
d. None of the above
12) � a
13) � c
14) � b
15. What is the difference between testing software developed by contractor outside
your country, versus testing software developed by a contractor within your
country?
a. Does not meet people needs
b. Cultural difference
c. Loss of control over reallocation of resources
d. Relinquishments of control
15) � b
16) � b
17) � b
18) � b
19) � d
20) � a
21. Which of these can be successfully tested using Loop Testing methodology?
a. Simple Loops
b. Nested Loops
c. Concatenated Loops
d. All of the above
21) � d
22. To test a function, the programmer has to write a ______, which calls the
function and passes it test data.
a. Stub
b. Driver
c. Proxy
d. None of the above
22) � b
23) � c
24. When a new testing tool is purchased, it should be used first by:
a. A small team to establish the best way to use the tool
b. Everyone who may eventually have some use for the tool
c. The independent testing team
d. The vendor contractor to write the initial scripts
24) � a
25) � d
1. Methodologies adopted while performing Maintenance Testing:-
a) Breadth Test and Depth Test
b) Retesting
c) Confirmation Testing
d) Sanity Testing
3. 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
4. Consider the following state transition diagram of a two-speed hair dryer, which
is operated by pressing its one button. The first press of the button turns it on
to Speed 1, second press to Speed 2 and the third press turns it off.
Which of the following series of state transitions below will provide 0-switch
coverage?
a. A,C,B
b. B,C,A
c. A,B,C
d. C,B,A
An alternate way of solving this is check for the options where it starts with
�OFF� state. So we have options �a� and �c� to select from. As per the state
diagram from �OFF� state the dryer goes to �Speed 1� and then to �Speed 2�. So our
answer should start with �A� and end with �C�.
8. Exhaustive Testing is
a) Is impractical but possible
b) Is practically possible
c) Is impractical and impossible
d) Is always possible
9. Which of the following is not a part of the Test Implementation and Execution
Phase
a) Creating test suites from the test cases
b) Executing test cases either manually or by using test execution tools
c) Comparing actual results
d) Designing the Tests
15. 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
23. Testing activity which is performed to expose defects in the interfaces and in
the interaction between integrated components is :-
a) System Level Testing
b) Integration Level Testing
c) Unit Level Testing
d) Component Testing
25. One of the fields on a form contains a text box which accepts alpha numeric
values. Identify the Valid Equivalence class
a) BOOK
b) Book
c) Boo01k
d) book
28. Which of the following items would not come under Configuration Management?
a) operating systems
b) test documentation
c) live data
d) user requirement document
30. The Switch is switched off once the temperature falls below 18 and then it is
turned on when the temperature is more than 21. Identify the Equivalence values
which belong to the same class.
a) 12,16,22
b) 24,27,17
c) 22,23,24
d) 14,15,19
From the given options select the option which has values from only one particular
class. Option �a� values are not in one class, so eliminate. Option �b� values are
not in one class, so eliminate. Option �c� values are in one class. Option �d�
values are not in one class, so eliminate. (please note that the question does not
talk about valid or invalid classes. It is only about values in same class)
3 IEEE 829 test plan documentation standard contains all of the following except:
a) test items
b) test deliverables
c) test tasks
d) test environment
e) test specification
5 Order numbers on a stock control system can range between 10000 and 99999
inclusive. Which of the following inputs might be a result of designing tests for
only valid equivalence classes and valid boundaries:
a) 1000, 5000, 99999
b) 9999, 50000, 100000
c) 10000, 50000, 99999
d) 10000, 99999
e) 9999, 10000, 50000, 99999, 10000
9 Which of the following is the main purpose of the integration strategy for
integration testing in the small?
a) to ensure that all of the small modules are tested adequately
b) to ensure that the system interfaces to other systems and networks
c) to specify which modules to combine when and how many at once
d) to ensure that the integration testing can be performed by a small team
e) to specify how the software should be divided into modules
12 Given the following code, which is true about the minimum number of test
cases required for full statement and branch coverage:
Read P
Read Q
IF P+Q > 100 THEN
Print �Large�
ENDIF
If P > 50 THEN
Print �P Large�
ENDIF
a) 1 test for statement coverage, 3 for branch coverage
b) 1 test for statement coverage, 2 for branch coverage
c) 1 test for statement coverage, 1 for branch coverage
d) 2 tests for statement coverage, 3 for branch coverage
e) 2 tests for statement coverage, 2 for branch coverage
21 Given the following types of tool, which tools would typically be used by
developers and which by an independent test team:
i. static analysis
ii. performance testing
iii. test management
iv. dynamic analysis
v. test running
vi. test data preparation
a) developers would typically use i, iv and vi; test team ii, iii and v
b) developers would typically use i and iv; test team ii, iii, v and vi
c) developers would typically use i, ii, iii and iv; test team v and vi
d) developers would typically use ii, iv and vi; test team I, ii and v
e) developers would typically use i, iii, iv and v; test team ii and vi
25 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
37 Which of the following is NOT included in the Test Plan document of the Test
Documentation Standard:
a) Test items (i.e. software versions)
b) What is not to be tested
c) Test environments
d) Quality plans
e) Schedules and deadlines
ANSWERS
1 C 11B 21B 31A
2 C 12B 22D 32B
3 E 13B 23A 33E
4 E 14B 24D 34A
5 C 15E 25A 35B
6 A 16C 26A 36B
7 B 17B 27D 37D
8 B 18C 28C 38D
9 C 19C 29A 39C
10 E 20A 30E 40B
2 Which of the following is likely to benefit most from the use of test tools
providing test capture and replay facilities?
a) Regression testing
b) Integration testing
c) System testing
d) User acceptance testing
6 Error guessing:
a) supplements formal test design techniques.
b) can only be used in component, integration and system testing.
c) is only performed in user acceptance testing.
d) is not repeatable and should not be used.
9 Given the following sets of test management terms (v-z), and activity
descriptions (1-5), which one of the following best pairs the two sets?
v � test control
w � test monitoring
x � test estimation
y � incident management
z � configuration control
1 � calculation of required test resources
2 � maintenance of record of test results
3 � re-allocation of resources when tests overrun
4 � report on deviation from test plan
5 � tracking of anomalous test results
a) v-3,w-2,x-1,y-5,z-4
b) v-2,w-5,x-1,y-4,z-3
c) v-3,w-4,x-1,y-5,z-2
d) v-2,w-1,x-4,y-3,z-5
10 Which one of the following statements about system testing is NOT true?
a) System tests are often performed by independent teams.
b) Functional testing is used more than structural testing.
c) Faults found during system tests can be very expensive to fix.
d) End-users should be involved in system tests.
23 Which of the following would NOT normally form part of a test plan?
a) Features to be tested
b) Incident reports
c) Risks
d) Schedule
24 Which of these activities provides the biggest potential cost saving from the
use
of CAST?
a) Test management
b) Test design
c) Test execution
d) Test planning
29 Which of the following is the best source of Expected Outcomes for User
Acceptance Test scripts?
a) Actual results
b) Program specification
c) User requirements
d) System specification
31 Which one of the following describes the major benefit of verification early in
the life cycle?
a) It allows the identification of changes in user requirements.
b) It facilitates timely set up of the test environment.
c) It reduces defect multiplication.
d) It allows testers to become involved early in the project.
35 A failure is:
a) found in the software; the result of an error.
b) departure from specified behaviour.
c) an incorrect step, process or data definition in a computer program.
d) a human action that produces an incorrect result.
37 The most important thing about early test design is that it:
a) makes test preparation easier.
b) means inspections are not required.
c) can prevent fault multiplication.
d) will find all faults.
Answers.
1 A 11 A 20 A 31 C
2 A 12 B 21 D 32 B
3 D 13 A 22 A 33 C
4 C 14 C 23 B 34 C
5 A 15 B 24 C 35 B
6 A 16 B 25 D 36 D
7 C 17 D 26 C 37 C
8 B 18 D 27 C 38 D
9 C 19 B 28 A 39 D
10 D 20 A 29 C 40 B
there is another coverage type [[ decision condition coverage ]] and the rule is
(2n+1) where n=the number of conditions.
example (IF x==y OR z==m && s==t)
then we have Two Condition Operators so number of test cases is (2*2)+1 = 5