Question 31
You have been assigned to perform a review on code provided below:

Which type of defect should you report as part of the code review?

Which type of defect should you report as part of the code review?
Question 32
Consider the following specification:

If you are flying with an economy ticket, there is a possibility that you may get upgraded to business class, especially if you hold a gold card in the airline's frequent flier program. If you don't hold a gold card, there is a possibility that you will get 'bumped' off the flight if it is full when you check in late.
This is shown in the control flow graph below. Note that each box (i.e., statement, decision) has been numbered.
Three tests have been run:
Test 1: Gold card holder who gets upgraded to business class
Test 2: Non-gold card holder who stays in economy
Test 3: A person who is bumped from the flight
What is the level of decision coverage achieved by these three tests?

If you are flying with an economy ticket, there is a possibility that you may get upgraded to business class, especially if you hold a gold card in the airline's frequent flier program. If you don't hold a gold card, there is a possibility that you will get 'bumped' off the flight if it is full when you check in late.
This is shown in the control flow graph below. Note that each box (i.e., statement, decision) has been numbered.
Three tests have been run:
Test 1: Gold card holder who gets upgraded to business class
Test 2: Non-gold card holder who stays in economy
Test 3: A person who is bumped from the flight
What is the level of decision coverage achieved by these three tests?
Question 33
You are reviewing the following Java function that determines whether a number input by the user is even or odd:
import java.util.Scanner;
public class OddOrEven {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
System.out.print("Please enter a number: ");
int number = reader.nextInt();
if (number % 2 == 0) {
System.out.println("Your input number '" + number + "' is even.");
} else {
System.out.println("Your input number '" + number + "' is odd.");
}
}
}
You are guided by the following checklist:
*All variables must start with a Capital letter
*All output messages must start with a Capita letter
*There must be a clear comment when explaining the purpose of the dress
How many checklist items Mve been fuelled7
SELECT ONE OPTION
import java.util.Scanner;
public class OddOrEven {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
System.out.print("Please enter a number: ");
int number = reader.nextInt();
if (number % 2 == 0) {
System.out.println("Your input number '" + number + "' is even.");
} else {
System.out.println("Your input number '" + number + "' is odd.");
}
}
}
You are guided by the following checklist:
*All variables must start with a Capital letter
*All output messages must start with a Capita letter
*There must be a clear comment when explaining the purpose of the dress
How many checklist items Mve been fuelled7
SELECT ONE OPTION
Question 34
Which TWO of the following statements about Maintainability testing are TRUE?
A) It should start as soon as the draft design documents are available for review
B) An application can be considered maintainable when static analysis and code review defects have been fixed
C) It tests the regression impact of software or environmental changes to an operational system
D) It can be performed during Operational Acceptance Testing by multiple departments
E) It can be performed during User Acceptance Testing to ensure business processes can be maintained
A) It should start as soon as the draft design documents are available for review
B) An application can be considered maintainable when static analysis and code review defects have been fixed
C) It tests the regression impact of software or environmental changes to an operational system
D) It can be performed during Operational Acceptance Testing by multiple departments
E) It can be performed during User Acceptance Testing to ensure business processes can be maintained
Question 35
The following User story is being developed using the 8DD approach:
As a Purchasing Manager
i want to see a list of all Purchase Orders placed so far this month with their total value So that I can control the amount of money being spent Which scenario is BOTH written in correct Gherkin format AND is appropriate for this User Story9 SEI ECT ONE OPTION
As a Purchasing Manager
i want to see a list of all Purchase Orders placed so far this month with their total value So that I can control the amount of money being spent Which scenario is BOTH written in correct Gherkin format AND is appropriate for this User Story9 SEI ECT ONE OPTION
