1.
Which of the following tools would be involved in the automation of regression tests?
Correct Answer
C. Capture/Playback
Explanation
Capture/Playback is a tool that would be involved in the automation of regression tests. This tool allows testers to record user interactions with the software and then play them back as test scripts. It helps in automating repetitive test cases and ensures that the same steps are executed consistently during regression testing. By capturing and replaying user actions, the tool can detect any deviations or errors in the application's behavior, making it an essential tool for automating regression tests.
2.
The incorrect form of logic coverage is:
Correct Answer
B. Pole Coverage
Explanation
The incorrect form of logic coverage is "Pole Coverage". This term does not exist in the context of logic coverage. The correct forms of logic coverage include Statement Coverage, Condition Coverage, and Path Coverage. These forms of coverage are used to measure the effectiveness of testing by examining the different aspects of the logic in a program. "Pole Coverage" is not a recognized term in this context, making it the incorrect answer.
3.
Which of the following is not a quality characteristic listed in ISO 9126 Standard?
Correct Answer
C. Supportability
Explanation
The ISO 9126 Standard lists several quality characteristics for software, including functionality, usability, and maintainability. However, supportability is not listed as one of the quality characteristics in this standard. Supportability refers to the ability of the software to be supported and maintained effectively, but it is not explicitly mentioned in ISO 9126.
4.
To test a function, the programmer has to write a _________, which calls the process to be tested and passes its test data.
Correct Answer
B. Driver
Explanation
A driver is a piece of code that is written to test a specific function or process. It calls the process to be tested and passes the test data to it. The purpose of the driver is to simulate the behavior of the actual program or function and verify that it produces the expected results. It helps the programmer to isolate and test specific parts of the code and identify any errors or bugs. In this case, the programmer needs to write a driver to test the function.
5.
Boundary value testing:
Correct Answer
B. Test boundary conditions on, below and above the edges of input and output equivalence classes
Explanation
Boundary value testing is a technique used to test the boundary conditions of input and output equivalence classes. It involves testing values that are on, below, and above the edges of these classes. This technique helps identify any errors or issues that may occur at the boundaries of the input and output ranges. Boundary value testing is often used in the white box testing strategy, where the internal structure of the system is known and tested accordingly.
6.
Pick the best definition of quality:
Correct Answer
C. Conformance to requirements
Explanation
The best definition of quality is "conformance to requirements." This means that a product or service is considered of high quality if it meets the specified requirements or standards set by the customer or the organization. It emphasizes the importance of meeting the expectations and specifications laid out for the product or service, ensuring that it fulfills its intended purpose effectively and efficiently.
7.
Fault Masking is:
Correct Answer
A. Error condition hiding another error condition
Explanation
Fault masking refers to a situation where one error condition conceals or hides another error condition. In other words, when one fault occurs, it prevents the detection or visibility of another fault. This can be problematic as it can lead to the failure of identifying and addressing all the underlying issues in a system. Therefore, fault masking is an undesirable situation that should be avoided in software development and testing processes.
8.
One Key reason why developers have difficulty testing their work is:
Correct Answer
D. Lack of Objectivity
Explanation
Developers may have difficulty testing their work due to a lack of objectivity. This means that they may struggle to view their code and its potential flaws from an unbiased perspective. When developers are too close to their own work, they may overlook certain issues or fail to identify potential problems. Objectivity is crucial in testing as it helps identify any gaps or errors that may have been missed during development. Without objectivity, developers may struggle to effectively test their work and ensure its quality.
9.
At what point can the test process start during the software development process?
Correct Answer
C. When the software requirements have been approved
Explanation
The test process can start when the software requirements have been approved because the requirements provide the necessary information for designing and executing tests. Once the requirements are approved, the testing team can begin creating test cases, test plans, and test scripts based on the approved requirements. This allows for early detection of any issues or discrepancies between the requirements and the actual software, ensuring that the final product meets the desired functionality and quality standards.
10.
In a review meeting, a moderator is a person who:
Correct Answer
B. Mediates between people
Explanation
A moderator in a review meeting is responsible for mediating between people. This means that they facilitate the discussion and ensure that everyone has an opportunity to express their opinions and ideas. The moderator helps to maintain a respectful and productive atmosphere by managing any conflicts or disagreements that may arise during the meeting. Their role is to ensure that all participants have a fair chance to contribute and that the meeting stays focused on the agenda.
11.
Acceptance test cases are based on what?
Correct Answer
A. Requirements
Explanation
Acceptance test cases are based on requirements. This means that the test cases are designed and executed to ensure that the system or software meets the specified requirements and functions as intended. By testing against the requirements, it helps to validate that the system is capable of satisfying the needs and expectations of the stakeholders. Acceptance testing is typically performed by end-users or customers to determine if the system is ready for deployment or release.
12.
“How much testing is enough?”
Correct Answer
C. The answer depends on the risk for your industry, contract, and special requirements.
Explanation
The answer to the question "How much testing is enough?" depends on various factors such as the risk associated with the industry, the contractual obligations, and any special requirements that need to be met. There is no one-size-fits-all answer to this question as the level of testing needed can vary significantly based on these factors.
13.
A typical test technique during a component test is:
Correct Answer
A. Statement and branch testing
Explanation
During a component test, a typical test technique is statement and branch testing. This technique involves testing each statement and branch in the code to ensure that all possible paths and conditions are covered. It helps identify any errors or bugs in the code that may occur due to incorrect statements or branches. By thoroughly testing the statements and branches, the test can ensure that the component functions correctly and meets the desired requirements. Usability testing, security testing, and performance testing are also important test techniques but are not specifically mentioned in the question.
14.
Statement Coverage will not check for the following:
Correct Answer
A. Missing Statements
Explanation
Statement coverage is a testing technique that aims to ensure that every statement in the code is executed at least once. However, it does not check for missing statements, which means it does not verify if there are any statements that are not present in the code. Therefore, statement coverage will not identify missing statements in the code.
15.
Independent Verification & Validation is:
Correct Answer
D. Done by an Entity Outside the Project’s spHere of influence
Explanation
Independent Verification & Validation (IV&V) refers to the process of evaluating and verifying a project's deliverables, processes, and activities by an entity that is not directly involved in the project. This external entity is independent and unbiased, ensuring that the project is being executed correctly and meeting the required standards. IV&V helps to identify any potential issues, risks, or deviations from the project's objectives, providing an objective assessment of the project's progress and quality. By involving an entity outside the project's sphere of influence, IV&V adds an extra layer of assurance and enhances the credibility and reliability of the project's outcomes.
16.
Code Coverage is used as a measure of what?
Correct Answer
C. Test Effectiveness
Explanation
Code Coverage is used as a measure of Test Effectiveness. Code coverage measures how much of the code is being tested by the test cases. It helps in determining the effectiveness of the tests by providing information on which parts of the code are covered and which are not. A higher code coverage indicates that more of the code is being tested, increasing the likelihood of finding defects and ensuring that the software is thoroughly tested. Therefore, code coverage is a metric used to assess the effectiveness of the testing process.
17.
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, 1901, 2003, 2004, 2005
Explanation
The correct answer includes all the boundary values for testing the input field. These values cover the minimum and maximum allowed years of birth (1900 and 2004), as well as values just below and above the allowed range (1899 and 2005). Additionally, it includes some values within the allowed range (1901 and 2003) to ensure thorough testing.
18.
Which one of the following is a non-functional testing method?
Correct Answer
D. Both B & C
Explanation
Both usability testing and performance testing are non-functional testing methods. Usability testing focuses on evaluating the user-friendliness and ease of use of a system, while performance testing assesses the system's responsiveness, scalability, and stability under different workloads. These tests do not directly test the functionality of the system but rather its non-functional aspects.
19.
Given the following program:
IF X <>= Z
THEN Statement 2;
END
McCabe’s Cyclomatic Complexity is
Correct Answer
A. 2
Explanation
McCabe's Cyclomatic Complexity is a software metric used to measure the complexity of a program. It is calculated based on the number of linearly independent paths through the program. In this program, there are two possible paths: one where the condition (X <> Y) OR (Y <> Z) is true and the THEN block is executed, and one where the condition is false and the THEN block is skipped. Hence, the complexity is 2.
20.
What is the primary goal of regression testing in software development?
Correct Answer
C. To verify that new code changes do not negatively impact existing functionality
Explanation
The correct answer is C. The primary goal of regression testing is to ensure that new code changes, updates, or additions do not introduce defects or negatively affect the existing functionality of the software.