1.
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
2.
Which one of the following are non-functional testing methods?
Correct Answer
D. Both b & c
Explanation
The correct answer is "Both b & c" because usability testing and performance testing are both examples of non-functional testing methods. Non-functional testing focuses on aspects such as usability, performance, security, and reliability, rather than the specific functionality of the system. Usability testing evaluates how user-friendly and intuitive the system is, while performance testing assesses how well the system performs under different conditions. Therefore, both b (usability testing) and c (performance testing) are non-functional testing methods.
3.
Which of the following tools would be involved in the automation of regression test?
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 during subsequent test runs. By capturing and replaying these interactions, the tool helps automate the regression testing process, ensuring that previously tested functionalities are still working correctly after any changes or updates to the software. This tool can save time and effort by eliminating the need for manual repetition of test cases.
4.
Incorrect form of Logic coverage is
Correct Answer
B. Pole Coverage
Explanation
Pole Coverage is not a valid form of logic coverage. The correct forms of logic coverage include Statement Coverage, Condition Coverage, and Path Coverage. Pole Coverage is not a recognized term or concept in the field of logic coverage.
5.
Which of the following is not a quality characteristic listed in ISO 9126 Standard?
Correct Answer
C. Supportability
Explanation
Supportability is not listed as a quality characteristic in the ISO 9126 Standard. The ISO 9126 Standard defines six quality characteristics for software: functionality, reliability, usability, efficiency, maintainability, and portability. Supportability, which refers to the ease of providing support and maintenance for the software, is not included in this list.
6.
To test a function, the programmer has to write a _________, which calls the function to be tested and passes it test data
Correct Answer
B. Driver
Explanation
A driver is a program or code that is written to test a specific function. It calls the function to be tested and passes it test data, allowing the programmer to check if the function is working correctly. The driver acts as a test harness, providing the necessary inputs to the function and verifying its output. This helps in identifying any errors or bugs in the function and ensures its proper functionality.
7.
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 testing technique that focuses on testing the boundary conditions of input and output equivalence classes. It involves testing values that are on, below, and above the edges of these equivalence classes. This technique helps in identifying errors that occur at the boundaries of the input and output ranges, as these boundaries are often more prone to errors. Boundary value testing is not the same as equivalence partitioning tests, as it specifically targets the boundaries of the equivalence classes. It is commonly used in white box testing strategy to ensure thorough test coverage.
8.
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 meets the specified criteria and fulfills the expectations and needs of the customer. It emphasizes the importance of meeting the established standards, specifications, and guidelines to ensure that the final outcome is of high quality and satisfies the intended purpose. "Quality is job one" and "Zero defects" are slogans that emphasize the importance of quality, but they do not provide a comprehensive definition. "Work as designed" also does not encompass the full meaning of quality as it does not consider the requirements or expectations.
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 masked by another error condition. This means that when an error occurs, it is not immediately apparent because it is overshadowed or concealed by another error. This can make it difficult to identify and diagnose the actual root cause of the problem. In other words, fault masking occurs when one error is camouflaged or disguised by another error, making it harder to detect and fix the underlying issue.
10.
One Key reason why developers have difficulty testing their own work is
Correct Answer
D. Lack of Objectivity
Explanation
Developers often have difficulty testing their own work due to a lack of objectivity. When developers are personally invested in their code, they may unintentionally overlook potential errors or flaws. They may also have a biased perspective and assume that their code is functioning correctly, leading to a lack of thorough testing. Objectivity is crucial in identifying and addressing issues effectively, which is why relying solely on self-testing can be challenging for developers.
11.
During the software development process, at what point can the test process start?
Correct Answer
C. When the software requirements have been approved
Explanation
The test process can start when the software requirements have been approved because testing is an essential part of verifying that the software meets the specified requirements. By starting the test process after the requirements have been approved, it ensures that the software is being tested against the correct criteria and that any issues or discrepancies can be identified and addressed early on in the development process. This allows for a more efficient and effective testing phase, leading to a higher quality end product.
12.
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 the moderator facilitates the discussion, ensures that everyone has a chance to speak, and helps to resolve any conflicts or disagreements that may arise during the meeting. The moderator's role is to create a balanced and productive environment where all participants can express their opinions and ideas effectively. Taking minutes of the meeting, taking telephone calls, and writing the documents to be reviewed are not the primary responsibilities of a moderator in a review meeting.
13.
Given the Following programIF X <>= ZTHEN Statement 2;ENDMcCabe’s Cyclomatic Complexity is
Correct Answer
B. 3
Explanation
The given program has an IF statement with a comparison operator "=" which means "not equal to or greater than". This means that if the value of X is not equal to or greater than the value of Z, then Statement 2 will be executed. The program has only one decision point, which is the IF statement. Therefore, according to McCabe's Cyclomatic Complexity formula, the complexity of the program is 3.
14.
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 1else statement 2if (Condition 2)then statement 3
Correct Answer
A. 2 Test Cases
Explanation
The correct answer is 2 Test Cases.
In this program fragment, there are two conditions (Condition 1 and Condition 2) that determine the execution path. Each condition has two possible outcomes (true or false). Therefore, to cover all possible sequences of statements, we need to consider all combinations of outcomes for the two conditions.
Since the conditions are independent of each other, we can multiply the number of outcomes for each condition to get the total number of test cases. In this case, 2 (outcomes for Condition 1) multiplied by 2 (outcomes for Condition 2) equals 4.
However, since the question states that the two conditions are independent, we can assume that there is no interaction between them. Therefore, we only need to consider one outcome for each condition, resulting in a total of 2 test cases.
15.
Acceptance test cases are based on what?
Correct Answer
A. Requirements
Explanation
Acceptance test cases are based on requirements. Acceptance testing is performed to determine whether a system meets the specified requirements and is acceptable for delivery to the end-users. Therefore, the acceptance test cases are designed based on the requirements to ensure that the system functions as intended and satisfies the needs of the stakeholders. The requirements serve as the foundation for creating test scenarios and validating the system's compliance with the desired functionality and performance criteria.
16.
“How much testing is enough?”
Correct Answer
C. The answer depends on the risk for your industry, contract and special requirements
Explanation
The question of how much testing is enough cannot be answered definitively because it depends on various factors such as the level of risk in the industry, contractual obligations, and any special requirements that need to be met. Each industry may have different standards and regulations that dictate the necessary level of testing. Additionally, the terms of a contract may specify certain testing requirements. Finally, special requirements for a particular project may also influence the amount of testing needed. Therefore, the answer to this question is subjective and dependent on these factors.
17.
A common test technique during component test is
Correct Answer
A. Statement and branch testing
Explanation
Statement and branch testing is a common test technique during component testing. It involves testing each statement and branch in the code to ensure that they are functioning correctly. This technique helps in identifying any logical errors or bugs that may exist in the code. By testing both the statements and branches, it ensures that all possible paths and conditions in the code are tested, increasing the overall test coverage and reducing the risk of potential failures.
18.
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 all statements in a program are executed at least once. It checks whether all the statements in the code have been covered by the test cases. However, statement coverage does not specifically check for missing statements, which refers to the absence of certain statements in the code that should be present. It focuses on the execution of existing statements rather than identifying any missing ones. Therefore, missing statements are not considered in the context of statement coverage.
19.
Independent Verification & Validation is
Correct Answer
D. Done by an Entity Outside the Project’s spHere of influence
Explanation
Independent Verification & Validation (IV&V) is a process that is performed by an entity outside the project's sphere of influence. This means that it is carried out by a third-party organization or individual who is not directly involved in the development or testing of the project. The purpose of IV&V is to provide an objective assessment of the project's processes, products, and deliverables. By having an independent entity conduct the verification and validation activities, it helps to ensure that there is an unbiased evaluation of the project's compliance with requirements, standards, and best practices.
20.
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. It indicates the extent to which the source code of a software application is being tested by a set of test cases. Higher code coverage implies that more parts of the code are being exercised during testing, increasing the likelihood of identifying defects or errors. Therefore, code coverage is an important metric to assess the effectiveness of testing efforts and ensure comprehensive test coverage.