1.
Executing the same test case by giving the number of inputs on the same build is called as
Correct Answer
D. Traceablity Matrix
Explanation
Executing the same test case by giving the number of inputs on the same build is called a Traceability Matrix. A Traceability Matrix is a document that maps and traces user requirements with test cases. It helps in ensuring that all requirements are covered by test cases and also helps in tracking the progress of testing. It provides a clear understanding of which test cases have been executed and which requirements have been tested.
2.
To check if we're developing the right product according to customer requirements is not a static process.
Correct Answer
B. Verification
Explanation
Verification is the process of evaluating a system or component to determine whether it satisfies specified requirements. In this context, it refers to checking whether the product being developed aligns with the customer requirements. Since the statement mentions that this process is not dynamic but static, it implies that it is a one-time check to ensure that the product is being developed correctly. Therefore, the correct answer is Verification.
3.
The cyclomatic complexity metric provides the designer with information regarding the number of
Correct Answer
C. Independent logic paths in the program
Explanation
The cyclomatic complexity metric measures the number of independent logic paths in a program. It helps the designer understand the complexity of the program by providing information on the different paths that the program can take during execution. This metric is useful for identifying areas of the code that may be more prone to errors or harder to maintain. By analyzing the cyclomatic complexity, the designer can make informed decisions to simplify the code and reduce the number of independent logic paths, leading to a more efficient and manageable program.
4.
To test a function: the programmer has to write a _________, which calls the function to be tested and passes its test data
Correct Answer
B. Driver
Explanation
In order to test a function, a programmer needs to write a driver. A driver is a code that calls the function to be tested and passes its test data. This allows the programmer to execute the function and verify its output or behavior. A driver is commonly used in software testing to facilitate the testing process and ensure that the function is working correctly. A stub is a simplified version of a function that is used in testing, but it is not the correct answer in this case. Proxy is also not the correct answer as it refers to a different concept in programming. Therefore, the correct answer is driver.
5.
Which of these can be successfully tested using Loop Testing methodology?
Correct Answer
D. All Of The Above
Explanation
Loop Testing methodology can be successfully used to test all three types of loops mentioned: Simple Loops, Nested Loops, and Concatenated Loops. In Loop Testing, the focus is on testing the loop structure and behavior by executing the loop multiple times. This helps in identifying any issues related to loop termination, loop conditions, and loop iterations. By testing all types of loops, we can ensure that the loop logic is correct and the desired functionality is achieved. Therefore, the correct answer is "All Of The Above".
6.
Cyclomatic Complexity method comes under which testing method.
Correct Answer
A. White Box Testing
Explanation
Cyclomatic Complexity is a measurement technique used in software testing to evaluate the complexity of a program by calculating the number of independent paths through the code. It is primarily used in White Box Testing, which focuses on testing the internal structure and logic of the software. By analyzing the control flow of the code, Cyclomatic Complexity helps identify areas that may be more prone to errors and allows testers to design test cases that cover all possible paths and conditions. Therefore, the correct answer is White Box Testing.
7.
Equivalence partitioning is:
Correct Answer
C. A black box testing technique appropriate to all levels of testing
Explanation
Equivalence partitioning is a black box testing technique that can be used at all levels of testing. It involves dividing the input data into groups or partitions that are expected to behave in the same way. This technique helps in selecting representative test cases from each partition, ensuring that all possible scenarios are covered. It is a valuable technique for identifying defects and ensuring the quality of the software being tested.
8.
An input field takes the year of birth between 1900 and 2004.The boundary values for testing this field are:
Correct Answer
C. 1899,1900,2004,2005
Explanation
The given answer includes the boundary values for testing the input field. The year 1899 is included to test if the field rejects a year before 1900. The year 1900 is included to test if the field accepts the minimum allowed year. The year 2004 is included to test if the field accepts the maximum allowed year. The year 2005 is included to test if the field rejects a year after 2004. Therefore, the answer includes all the necessary boundary values to test the input field effectively.
9.
Fault Masking is
Correct Answer
A. Error condition hiding another error condition
Explanation
Fault masking refers to the situation where one error condition is hidden or obscured by another error condition. In other words, when an error occurs, it is not immediately apparent because it is being masked or overshadowed by another error. This can make it difficult to identify and diagnose the root cause of the problem, as the focus is on the visible error rather than the underlying issue. Fault masking can occur both during development, where a developer may unintentionally introduce a new error that hides an existing one, and during testing, where a tester may overlook an error due to the presence of another error.
10.
How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment? Assume that the two conditions are independent of each other: -
…………
if (Condition 1)
then statement 1
else statement 2
fi
if (Condition 2)
then statement 3
fi
…………
Correct Answer
C. 4 Test Cases
Explanation
The program fragment consists of two if statements, each with two possible outcomes. To cover all possible sequences of statements, we need to consider all possible combinations of outcomes for the two if statements. Since each if statement has 2 possible outcomes, the total number of possible combinations is 2 * 2 = 4. Therefore, 4 test cases are necessary to cover all possible sequences of statements.