Which of the following is NOT a characteristic of good testing, independent of the development life cycle model?
Answer : D
Testers should be involved in reviewing documents such as requirements specifications or user stories as soon as drafts become available in order to provide early feedback on testability aspects such as clarity, consistency, completeness, correctness, unambiguity etc.
Early involvement of testers in reviewing documents can help to prevent defects from being introduced into later phases of development or testing by identifying potential issues or gaps before they become embedded in the system under test.
A, B, and C are characteristics of good testing, independent of the development life cycle model. Each test level having objectives specific for the test level (A) ensures that testing is aligned with the purpose and scope of each level and provides clear criteria for success. Every development activity being matched by a corresponding testing activity (B) ensures that testing is integrated with development and provides continuous feedback on quality and progress. Testers being involved in reviewing documents as soon as drafts are available ensures that testing is performed early and throughout the life cycle and provides input on testability aspects.
Which of the following lists contains only black-box test techniques?
Answer : C
Black-box test techniques are test techniques that are based on an analysis of the test basis without reference to the internal structure of the system under test. Decision table testing is a black-box test technique that uses a table showing combinations of inputs and/or stimuli (causes) with their associated outputs and/or actions (effects). Use case testing is a black-box test technique that uses scenarios based on use cases (descriptions of sequences of events that a system performs that yield an observable result of value to a particular actor). State transition testing is a black-box test technique that uses models of the state transitions and events of a system to design test cases.
You need to test a vending machine for light drinks The machine has a button for each of the drinks it contains
Pressing a button before inserting coins, will display the cost of the drink
Pressing the same button after inserting enough coins will dispense the drink and provide change if needed)
If the machine is out of the specific drink, and the button for this drink is pressed, the machine displays "Sold Out" (regardless if coins were inserted or not).
Which test technique is most suitable for this situation?
Answer : A
State transition testing is the most suitable test technique for this situation. State transition testing is a technique that uses scenarios based on state diagrams to test the behavior of a system or component that can change its state in response to events or inputs. A state diagram is a graphical representation of the states that a system or component can be in, the events or inputs that can trigger a change of state (transitions), and the actions or outputs that can occur as a result of a change of state. In this case, the vending machine for light drinks can be modeled as a state diagram with states such as ''idle'', ''coins inserted'', ''drink selected'', ''drink dispensed'', ''change returned'', ''sold out'', etc., and transitions triggered by events such as ''button pressed'', ''coins inserted'', ''drink dispensed'', ''change returned'', etc. State transition testing can help design test cases that cover all the possible states and transitions of the vending machine and verify its functionality and usability.
A software system checks age in order to determine which welcome screen to display Age groups are
Group I: 0-12
Group II,: 13-18
Group II,I: over 18
Which of the below represent boundary values?
Answer : A
(0, 12, 13,18,19) represent boundary values for the age groups. Boundary value analysis is a technique to test the values at the boundaries of an input domain or equivalence partition. explains this as follows:
Boundary value analysis (BVA) is based on testing the boundary values of valid and invalid partitions. The behavior at the edge of each equivalence partition is more likely to be incorrect than the behavior within the partition, so boundaries are an area where testing is likely to yield defects.
(-1,0,11,12,13,14,18,19) (B) are not boundary values, but include some boundary values and some non-boundary values. (4,5,15,20) are not boundary values at all. (-1.0,12,13,18,19) (D) are not boundary values either, as -1.0 is not an integer value.
Which of the following correctly describes the goal of Statement Testing?
Answer : C
Statement Coverage (also known as Line Coverage) measures how many statements have been executed by your tests. It's calculated by dividing the number of executed statements by total number statements in source code file.
Statement testing does not aim to reduce the number of tests needed to test the system (A), assess the correctness of key statements in each module of the application (B), or assess the number of code statements needed to implement each feature (D).
An online form has a "Title" input field The valid values for this field are: Mr, Ms. Mrs. Which of the following is a correct list of the equivalence classes of the input values for this field?
Answer : D
Equivalence Partitioning (or Equivalence Class Partitioning) is an software testing technique that divides the input data of a software unit into partitions of equivalent data from which test cases can be derived. In principle, test cases are designed to cover each partition at least once.
The fundamental concept of Equivalence Partitioning is that you can find more errors in a test case by using a representative value from an equivalence class than by using any other value from the class.
The input domain for this field can be divided into four partitions: Mr, Mrs., Ms, and any other input. The first three partitions are valid, as they are the only acceptable values for this field. The last partition is invalid, as it includes any value that is not Mr, Mrs., or Ms, such as Dr, Prof, Miss, etc.