Software testing & tools solution
Software testing & tools solution
h) What is a defect?
A defect is an imperfection or deviation in a software
application that causes it to behave in a way that is not as
intended or expected. It is also referred to as a bug or fault.
Paper 2
Q1) Attempt all of the following for 1 mark each.
a) Define Test Automation.
Test automation is the process of using software tools to
execute pre-defined tests, compare actual outcomes with
expected outcomes, and report results. It reduces manual effort
and increases testing efficiency.
d) What is an error?
An error is a human mistake in software development that
leads to incorrect results or system behavior. It can occur
during coding, requirement gathering, or designing.
int main() {
int num;
printf("Enter a number: ");
scanf("%d", &num);
if (isPrime(num)) printf("%d is a prime number.", num);
else printf("%d is not a prime number.", num);
return 0;
}
Control Flow Graph: Consists of nodes representing decision
points and edges for control flow.
Cyclomatic Complexity: E−N+2=5−4+2=3E - N + 2 = 5 - 4
+ 2 = 3.
Continuing with the remaining sections of Paper 2: