NEW
Font size
WorksheetsCTFL Mock Quiz - 03
Total questions: 40
Worksheet time: 20mins
Software testing activities should start
as soon as the code is written
during the design stage
when the requirements have been formally documented
as soon as possible in the development life cycle
Faults found by users are due to:
Poor quality software
Poor software and poor testing
bad luck
insufficient time for testing
What is the main reason for testing software before releasing it?
to show that system will work after release
to decide when the software is of sufficient quality to release
to find as many bugs as possible before release
to give information for a risk based decision about release
which of the following statements is not true
performance testing can be done during unit testing as well as during the testing of whole system
The acceptance test does not necessarily include a regression test
Verification activities should not involve testers (reviews, inspections etc)
Test environments should be as similar to production environments as possible
When reporting faults found to developers, testers should be:
as polite, constructive and helpful as possible
firm about insisting that a bug is not a “feature” if it should be fixed
diplomatic, sensitive to the way they may react to criticism
All of the above
In which order should tests be run?
the most important tests first
the most difficult tests first(to allow maximum time for fixing)
the easiest tests first(to give initial confidence)
the order they are thought of
The later in the development life cycle a fault is discovered, the more expensive it is to fix. why?
the documentation is poor, so it takes longer to find out what the software is doing
wages are rising
the fault has been built into more documentation, code, tests, etc
none of the above
Which is not true-The black box tester
should be able to understand a functional specification or requirements document
should be able to understand the source code
is highly motivated to find faults
is creative to find the system’s weaknesses
A test design technique is
a process for selecting test cases
a process for determining expected outputs
a way to measure the quality of software
a way to measure in a test plan what has to be done
Testware (test cases, test dataset)
needs configuration management just like requirements, design and code
should be newly constructed for each new version of the software
is needed only until the software is released into production or use
does not need to be documented and commented, as it does not form part of the released
software system
An incident logging system
only records defects
is of limited value
is a valuable source of project information during testing if it contains all incidents
should be used only by the test team
Increasing the quality of the software, by better development methods, will affect the time
needed for testing (the test phases) by:
reducing test time
no change
increasing test time
can’t say
Coverage measurement
is nothing to do with testing
is a partial measure of test thoroughness
branch coverage should be mandatory for all software
can only be applied at unit or module testing, not at system testing
When should you stop testing?
when time for testing has run out
when all planned tests have been run
when the test completion criteria have been met
when no faults have been found by the tests run
Which of the following is true?
Component testing should be black box, system testing should be white box
if u find a lot of bugs in testing, you should not be very confident about the quality of software
the fewer bugs you find, the better your testing was
the more tests you run, the more bugs you will find
What is the important criterion in deciding what testing technique to use?
how well you know a particular technique
the objective of the test
how appropriate the technique is for testing the application
whether there is a tool to support the technique
If the pseudocode 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;
1
2
3
4
If the pseudocode below were a programming language, how many tests are required to achieve 100%
branch/decision 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;
1
2
3
4
Which of the following is NOT a type of non-functional test?
State-Transition
Usability
Performance
Security
Which of the following tools would you use to detect a memory leak?
State analysis
Coverage analysis
Dynamic analysis
Memory analysis
Which of the following is NOT a standard related to testing?
IEEE829
IEEE610
BS7925-1
BS7925-2
which of the following is the component test standard?
IEEE 829
IEEE 610
BS7925-1
BS7925-2
which of the following statements are true?
Faults in program specifications are the most expensive to fix
Faults in code are the most expensive to fix
Faults in requirements are the most expensive to fix
Faults in designs are the most expensive to fix
Which of the following is not the integration strategy?
Design based
Big-bang
Bottom-up
Top-down
Which of the following is a black box design technique?
statement testing
equivalence partitioning
error- guessing
usability testing
A program with high cyclometic complexity is almost likely to be:
Large
Small
Difficult to write
Difficult to test
Which of the following is a static test?
code inspection
coverage analysis
usability assessment
installation test
Which of the following is the odd one out?
white box
glass box
structural
functional
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 input values cover all of the equivalence partitions?
10,11,21
3,20,21
3,10,22
10,21,22
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 input values cover all of the equivalence partitions?
Which of the following covers the MOST boundary values?
9,10,11,22
9,10,21,22
10,11,21,22
10,11,20,21
An input field takes the year of birth between 1900 and 2004. The boundary values for testing this field are
0,1900,2004,2005
1900, 2004
1899,1900,2004,2005
1899, 1900, 1901,2003,2004,2005
Which one of the following are non-functional testing methods?
System testing
Usability testing
Performance testing
Both b & c
Which of the following tools would be involved in the automation of regression test?
Data tester
Boundary tester
Capture/Playback
Output comparator
Incorrect form of Logic coverage is:
Statement Coverage
Pole Coverage
Condition Coverage
Path Coverage
Which of the following is not a quality characteristic listed in ISO 9126 Standard?
Functionality
Usability
Supportability
Maintainability
To test a function, the programmer has to write a _________, which calls the function to be
tested and passes it test data.
Stub
Driver
Proxy
None of the above
How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment?
…………
if (Condition 1)
then statement 1
else statement 2
fi
if (Condition 2)
then statement 3
fi
…………
1
2
3
None of the above
Acceptance test cases are based on what?
Requirements
Design
Code
Decision table
A common test technique during component test is
Statement and branch testing
Usability testing
Security testing
Performance testing
Statement Coverage will not check for the following
Missing Statements
Unused Branches
Dead Code
Unused Statement
