In an organization, software quality is regarded as an important aspect. Therefore, test engineers carefully measure and improve software quality. Identify the minimum process maturity level of this organization.
Which of the following options best describes the difference between test requirements and test cases?
Options :
6406536378902.✖ Test requirements define specific input values, while test cases define test objectives.
6406536378903.✔ Test requirements represent the required coverage criteria, whereas test cases define an execution to satisfy one or more of those requirements.
6406536378904.✖ Test requirements are created after executing test cases to measure test effectiveness.
6406536378905.✖ Test cases and test requirements are interchangeable terms used at different stages of the testing process.
In the __________ approach for integration testing, all individually tested modules are put together to construct the entire system which is tested as a whole. Fill in the blank with correct option.
Consider an email client application that sends a request to a mail server, the mail server then responds with new email messages for a user. Which type of interface does this scenario represent?
The __________ in a control flow graph (CFG) represents the minimum number of paths required for basis path testing. Fill in the blank with the appropriate option.
Options :
6406536378926.✖ number of prime paths
6406536378927.✔ number of linearly independent paths
Consider the following Java code for NumbersUtil class, there are some faults in the implementation. The method hasEven(int[] values) needs to be tested using the JUnit test class TestNumbersUtil.
public static class NumbersUtil
{
// Inputs: A non-empty integer array
// Effects: Returns true if any number in the array is even, else false
// Assumptions: Throws NullPointerException if the array is null
public static boolean hasEven(int[] values) {
for (int i = 0; i < values.length - 1; i++) {
if (values[i] % 2 == 1) {
return true;
}
}
return false;
}
}
/* ----- Test Class ----- */
import static org.junit.Assert.*;
import org.junit.Test;
public class TestNumbersUtil {
@Test
public void testCase1() {
int[] values = { 3, 5, 7, 8 };
assertTrue(NumbersUtil.hasEven(values));
}
@Test
public void testCase2() {
int[] values = { 2, 9, 11, 13 };
assertTrue(NumbersUtil.hasEven(values));
}
@Test
public void testCase3() {
int[] values = { 1, 3, 5, 7 };
assertFalse(NumbersUtil.hasEven(values));
}
@Test
public void testCase4() {
int[] values = { 4 };
assertTrue(NumbersUtil.hasEven(values));
}
}
Identify which of the test cases would be able to uncover the faults in the program.
Options :
6406536378946.✖testCase1()
6406536378947.✖testCase2()
6406536378948.✔testCase3()
6406536378949.✔testCase4()
Sub-Section Number : 4 | Question Shuffling Allowed : No
Question Id : 6406531963344 | Comprehension | Question Numbers : (16 to 18)
Consider the control flow graph (CFG), G = {V, E}, where
Set of vertices V = {1, 2, 3, 4, 5, 6}
Set of edges E = {(1,2), (2,3), (2,4), (3,5), (4,5), (5,2), (5,6)}
Initial vertex V0 = 1
Final vertex Vf = 6
Based on the above data, answer the given subquestions.