Assignment
1
This assignment is on the testing
terminologies, activities, RIPR criteria,
coverage criteria, test automation and TDD.
1
point
1.
A test case is said to have passed when which
of the following holds?
The actual output is different from expected
output but there is
no error.
The
actual output is the same as the expected output.
The software produces an output successfully
upon giving an in-
put.
There
is a message that there is no error from the program.
1
point
2.
Which of the following is the phase of testing
that is done after modifying/upgrading a component, to ensure that the
modification is working correctly and other components are not damaged by the
modification.
Upgrade
testing
White-box
testing
Regression
testing
Acceptance
testing
1
point
3.

True
False
1 point
4. Which
of the following activities in testing is done to isolate an identified fault
in a large software?
Test
execution
Test
evaluation
1
point
Consider the code segment given below:
input a,b;
if (a+b < 5)
{
b := b+1;
if (b < 10)
--- error ---;
}
5)Which of the following conditions will reach the error
statement?
a+b
< 5
a+b
< 5 && b < 10
a+b
< 5 && b < 9
b
< 9
1 point
6) State true or
false: During test automation, prefix and postfix values are used to ensure
reachability and propagation respectively.
True.
False.
1
point
7) State true or false: In JUnit, assertions are used to check
for failure of tests.
True.
False.
1
point
8) Which of the following represents the order in which
artifacts are written in test driven development?
Code
followed by test cases.
Test
cases followed by code.
1
point
9) State true or false: TDD results in smelly code.
True.
False.
1
point
10) If a logical expression labelling an if statement is always
false, then which of the following holds?
Predicate
coverage for the if statement is infeasible.
Predicate coverage for the if statement is
feasible but, will never
result in any execution.