WorksheetsSoftware Testing Worksheet Questions (Grade 13)
Total questions: 51
Worksheet time: 26mins
Which is non-functional software testing?
Unit Testing
Block box testing
Performance Testing
Regression testing
The process of checking the operation of the tested software with all various types of hardware is ...
Regression Testing
Compatibility Testing
Alpha Testing
Configuration Testing
What are the categories of Review?
Planning, Overview, Preparation, Meeting, Rework, Follow-up, Analysis
Inspection, Team Review, Walkthrough, Peer Desk Check, Ad Hoc Review
Education Review, Prepare Review, Peer Review, State Review
Inspection, Code reading, Pair programming, Walkthrough
What existing standard(s) and guideline(s) that testers may refer when performing high-level reviews of specification.
Organization standards, terminology and conventions: software should adopt the common terms and conventions used by the end users.
Industry standards: In some industries there are strict standards that software must follow.
Government standards, Security standards.
All of above
How many tests are needed for 100% statement coverage of this code? IF a > 5 THEN Print "Yes" IF b == 0 THEN Print "Zero" ENDIF ELSE Print "No" ENDIF
1
2
3
4
A software calculates parking fees as follows: First hour: 10,000 VND Hours 2–5: 5,000 VND/hour From hour 6 onward: 3,000 VND/hour Which group of values belongs to the same equivalence class?
0.5h; 1h; 2h
2h; 4h; 6h
3h; 4h; 5h
1h; 5h; 7h
The size of inspection team is:
3–7 participants
over 10 participants
As least as possible
Exactly 5 participants
What kind of loop is (are) difficult to write testcase?
Nested loops: a loop within another loop
Concatenated loops: one loop after another loop
Unstructured loops
All of above
The order steps of performance Testing lifecycle are - Analyze Results and Tune System - Create Scripts and Conduct Test - Plan for Performance Test
1, 2, 3
3, 2, 1
1, 3, 2
2, 1, 3
A system accepts ages for school enrollment: Kindergarten: 3–5 years Primary: 6–11 years Secondary: 12–17 years Which set contains one value from each equivalence partition?
5, 6, 12
4, 10, 15
3, 8, 17
2, 6, 18
In a system designed to calculate the taxi fee: The fee for first km is 15000. From the second to 10 km the price is 10000. Any further the price is 8000. Which of these groups of numbers would fall into the same equivalence class?
5km; 7km; 20km
2km; 7km; 8km
0.1km; 0.8km; 2km
0.1km; 2km; 4km
If the pseudocode below were a programming language, how many tests are required to achieve 100% statement coverage? IF x > 7 THEN Display "Good value" IF y = 1 THEN Display "Are you sure?" ELSE Display "Pass" ENDIF ELSE Display "See you soon" ENDIF
2
3
4
5
Which technic of testing must draw the CFG (Control Flow Graph)
Basis Path Testing
Branch Testing
Loop Testing
All of above
What kind of black box testing that tester must fill data following 4 areas (condition stub, condition entry, action stub and action entry)
Boundary testing
Equivalence class testing
Decision table
Error guessing
Which lines must write test case with branch testing technic? IF A > B THEN C = A ELSE C = A + B ENDIF READ D IF C = D THEN PRINT "Error" ENDIF
1, 7
1, 2, 7
1, 2, 3, 7
All lines
Which option lists types of static review techniques?
Planning, Rework, Follow-up
Inspection, Walkthrough, Peer Desk Check, Ad Hoc Review
Education Review, State Review
Pair programming, Code reading (only partial)
Which black-box technique organizes test conditions and actions in a table with condition stubs, condition entries, action stubs, and action entries?
Boundary Value Analysis
Equivalence Partitioning
Decision Table
State Transition Testing
A washing machine has three temperature bands for different kinds of fabrics: Fragile fabrics are washed at temperatures between 10 and 30 degrees Celsius; Normal fabrics are washed at temperatures between 31 and 60 degrees Celsius; Heavily soiled and tough fabrics are washed at temperatures between 61 and 100 degrees Celsius. Which of the following contains only values that are in different equivalence partitions?
10, 31, 55
20, 65, 90
25, 45, 77
15, 30, 60
Which type of loop is most challenging for test case design?
Nested loops
Concatenated loops
Unstructured loops
All of the above
What is the typical size of an inspection team?
3–7 participants
Over 10
As few as possible
Exactly 5
In Performance Testing, throughput refers to:
Time from request to full response
Amount of work processed per unit time
Number of concurrent users
All of the above
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 pseudo code below were a programming language, how many tests are required to achieve 100% statement coverage? Pseudo code: 1. If x=3 then 2. Display_messageX; 3. If y=2 then 4. Display_messageY; 5. Else
1
2
3
4
Using the same code example as question 17, how many tests are required to achieve 100% branch/decision coverage?
1
3
2
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?
IEEE829
IEEE610
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?
Top-down
Big-bang
Bottom-up
Design based
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?
10,11,21
3,20,21
3,10,22
10,21,22
Using the same specifications as question 29, 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
