How many test cases need to be designed to achieve 100% decision coverage in the following piece of pseudo-code which applies discount rates to hotel room bookings?
Read (Loyalty_level)
Read (Room_price)
IF (Room_price > 200)
IF (Loyalty_level = Platinum)
Discount_factor = 80%
ELSE
IF (Loyalty_level = Gold)
Discount_factor = 85%
ELSE
Discount_factor = 95%
ENDIF
ENDIF
ELSE
IF (Room_price > 150)
IF (Loyalty_level = Platinum)
Discount_factor = 85%
ELSE
Discount_factor = 95%
ENDIF
ELSE
Discount_factor = 100%
ENDIF
ENDIF
Room_price = Room_price * Discount_factor
IF (Discount_factor < 100%)
Show message " Congratulations - you have received a discount! "
ENDIF
Consider the following section of code:
If ((A > B) or (C > D)) and (E = F) then
print A;
Endlf
Which of the following sets of test data can be used to achieve multiple condition coverage with the least number of tests?

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
What BEST describes how tools can support the practice of Model-Based Testing (MBT)?
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?
A project to develop a new system has performance efficiency listed as a critical requirement. Which of the following describes how and when the Technical Test Analyst should FIRST be involved in performance test activities for the new system?
Considering the following statements:
A) The data used for a test is held external to the automated script
B) The scope of an automated test suite is driven by the range of test data available
C) It uses a high-level language to separate the action to be performed on the test data from the test script
D) A spreadsheet is used to record the actions to be performed instead of the input data
Which of the following options is the correct selection of these statements to describe data-driven and keyword-driven automation?
You are defining the test approach for an Agile project release focused on significantly overhauling the user interface of a golf club ' s booking system. Additional features will allow more flexible bookings across three courses. These changes are driven by numerous customer complaints about the current system ' s confusing design and limited options. The release will consist of six two-week sprints.
Stakeholders have performed a risk assessment and consider the impact of system failure as high due to potential customer loss. A regression-averse strategy is recommended due to the extensive changes expected in screen design and functionality.
Which option below represents the BEST test approach for this release? Please use the following symbols consistently:
♦ + (highly recommended)
♦ (recommended)
o (neutral/optional)
• (not recommended)
- (not to be used)

SELECT ONE OPTION
You are conducting security tests on an e-commerce application. Many core areas have been tested and found to have no issues. Protection of users ' private information has also been verified. You are now focusing on testing the UI, which captures query information from the user. Which of the following defect types should you target in your testing?
Assume you are involved in testing a Health Insurance Calculation system.
At the main screen one can enter information for a new client. The information to be provided consists of last name, first name and date of birth. After confirmation of the information, the system checks the age of the potential new client and calculates a proposed premium.
The system also has the option to request information for an existing client, using the client’s ID number.
A keyword-driven automation approach is being used to automate most of the regression testing.
Based on the information provided, which TWO of the options provided would be the MOST LIKELY keywords for this application? (Choose two.)
Consider the simplified logic below for crediting money to a bank account.
Receive money and account number to be credited
IF account number is valid
IF customer account is active
Store current account balance as oldBalance
Credit money to account
IF oldBalance < zero
IF balance now > = zero
Set message " Overdraft cleared "
ELSE
Set message " A/c overdrawn "
ENDIF
ELSE
Set message = " You have more money "
ENDIF
IF account holder is VIP customer
Send message by email to customer
ENDIF
ELSE
Set message " A/c inactive "
Send message by email to supervisor
ENDIF
ELSE
Add 1 to count of invalid inputs
ENDIF
What percentage of decision testing coverage has been achieved by the following suite of test cases?
Test Case A - Account number valid, account is active, oldBalance = -100, balance now = +200, not a VIP customer
Test Case B - Account number valid, account is active, oldBalance = -100, balance now = -50, is a VIP customer
Consider the pseudo code for the Answer program:

Which of the following statements about the Answer program BEST describes the control flow anomalies to be found in the program?
Why could test cases need to be refactored in an Agile project?
SELECT ONE OPTION
BestFor Incorporated is a rapidly growing online financial services company that offers guidance to its customers on a range of financial products. Its first website, BestForMortgages, was launched two years ago, shortly followed by BestForPensions. The popularity of both sites has driven the company to expand its offerings into other sectors and a third website, BestForFood, is currently under development.
The first two websites have proven to be functionally robust but suffered from performance issues due to:
Underestimation of concurrent user access at peak times in its original operational profiles
Data volumes rapidly growing beyond expectations on a single database shared by both sites.
All three websites will share the same web server.
In consideration of the problems encountered with the first two websites, which TWO of the following types of testing should be performed on the BestForFood website to see whether similar defects exist?
A) Load Testing
B) Stress Testing
C) Scalability testing
D) Portability Testing
E) Recoverability testing
The stakeholders in a new system want its mean time between failure to be three months or longer, with a mean time to repair the system of ten minutes or less when it does fail. When planning and specifying reliability tests to be performed before release, which ONE of the following is a factor that must be considered?
You are working for a company that has a product in the field that has reached its capacity. The system cannot handle any more users without a significant degradation in performance and a significant spike in resource requirements. As a result, your new product has strict requirements for performance efficiency and a specific growth requirement that is estimated for the next three years.
What type of testing should you conduct to make sure the future requirements will be met?
You are working for a video game manufacturer You have a new title being released Market interest in the product is at an all time high and everyone in the company has been promised huge bonuses if the launch is successful You are responsible for portability testing Which area, m particular should you emphasize in your testing?
At which test level would performance efficiency testing most likely be performed?
Which of the following is a common technical issue that can result in an automation project failing?
Given the following decision: IF X < 5 OR Y > 10 THEN
And the following test inputs: X=6 and Y=12, X=5 and Y=10
Which of the following additional sets of test inputs will ensure that full Multiple Condition coverage is achieved?
Given the following code:
If x > y and z = 3 statement!
elseif z = 4 statement
endif;
What is the minimum number of tests needed to achieve 100% decision coverage?
Which of the following defect types is NOT an example of a defect type typically found with API testing?
Which statement about test automation being applied to a reactive test approach, is CORRECT’
SELECT ONE OPTION
You are testing software that requires you to enter defined order numbers and either add, delete or update the information associated with that order number, which of the following is the minimum set of columns you should see in your keyword-driven input table?
A project to replace your company ' s sales and merchandising system has begun. The old system is still in production but is poorly documented and expensive to maintain: changing it has often produced a large quantity of defects. The new version will be developed using modern techniques and technology.
Requirements include:
Loading sales data, sent electronically from the stores each evening, into a central database where it is then available for other applications.
Producing sales reports for the merchandisers, whose job is to manage stock levels in stores.
Predictions of future demand for each product, based on a combination of sales history and forecasting parameters.
Requirements 1 and 2 are satisfied by the existing system and will be rewritten with no significant changes. Requirement 3 is new: these forecasting reports will be run overnight, and users will request them by entering simple parameters online during the day.
The sales data are loaded in an overnight batch run. There have been problems at peak periods when this run has taken longer than scheduled, so that dependent jobs could not finish before the start of the working day.
As a Technical Test Analyst, you have been asked to contribute to the project ' s Master Test Plan. The concerns expressed by stakeholders during risk identification include the length of the batch job runs, ease of parameter entry for the users, unauthorized access to stored sales data, and limited time for testing. With these in mind, which TWO of the following quality characteristics sub-characteristics are likely to contain the highest levels of technical risk?
A) Operability.
B) Time behavior.
C) Interoperability.
D) Security.
E) Testability.
Which option describes a good practice when applying test automation for a Regression-averse test approach?
SELECT ONE OPTION
In order to create a shareable testing service from server or network traffic log data, which of the following types of tool would you use?
SELECT ONE OPTION
When conducting a data flow analysis of following section of pseudo code:
Declare C, F, Z Decimal
Set Z = 32
Read F
SetC = (F-Z) * 5/9
Free C, F. Z
Print F
Which of the variables utilized above has a potential anomalie?
A review of the following pseudo code is to be performed using a checklist:
Module Vowel Counter
Message: array of Characters
M, N: Integer
ACount, ECount, ICount, OCount, UCount: Integer
BEGIN
I=1
Read Nextchar
While Nextchar < > ' S '
DO
Message (I) = Nextchar
I = I+1
Read Nextchar
ENDWHILE
FOR M = 1 To I
DO
Print (Message(M))
IF Message (M) = ' E '
THEN
ECount = ECount + 1
ELSE
IF Message (M) = ' A '
THEN
ACount = ACount + 1
ELSE
IF Message (M) = ' I '
THEN
ICount = ICount + 1
ELSE
IF Message (M) = ' O '
THEN
OCount = OCount + 1
ELSE
IF Message (M) = ' U '
THEN
UCount = UCount + 1
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDFOR
Print ( ' Message contains ' ACount + ECount + ICount + OCount + UCount ' vowels ' )
END
Which of the following checklist items would find code errors in this scenario?
A) Are all variables properly declared?
B) Are all loops, branches, and logic constructs complete, correct, and properly nested?
C) Are all cases covered in an IF-ELSEIF, including ELSE or DEFAULT clauses?
D) Are loop termination conditions obvious and invariably achievable?
E) Are there any redundant or unused variables?
Consider the following code segments.
Segment 1:
If a > b then setc = 12
elseif c > 7 set c = 5
endif
Segment 2: setc= 12 for n = 1 to c
display c
endfor
Segment 3:
If (a > b) or (c < d) then
set c = 12
else
set c = 5
endlf
Segment 4:
set y = 4
call (segments)
segments:
start
for I = 1 to y
print y
endfor
end
Which segment would receive the highest cyclomatic complexity value?
You have run static analysis tools against four large, complex code components (A, B, C, and D) with the following measures reported:
(Insert Table 1)
You must decide which component should be selected FIRST for applying maintainability improvements. The combination of Cohesion and Coupling is regarded as the MOST important factor, v/ith the number of repeated code sections as the next important factor.
Which component should you select?

Which of the following statements about Application Programming Interface (API) testing is TRUE?
A risk-based approach is being taken to test a new web-based retail application. Which of the following activities is the Technical Test Analyst NOT usually expected to perform?
You are responsible for the non-functional testing of a website supporting a popular restaurant chain. Due to the rapid expansion of the number of restaurants in the chain, the company is expecting the peak number of concurrent website views to more than triple in the next 6 months. As a result, it has purchased two further production servers to support the existing one. A new hardware release has been scheduled for which the following product risk has been recorded:
{Insert Table 2)
Which one of the following non-functional test typos would be BEST to mitigate this risk?

Which of the following is NOT a common issue with traditional capture/playback test automation?
The requirements specification of a product begins with this sentence:
" The xyz system will provide many new user functions. These must be easy for our operators to use and tolerant of user input errors. These new functions must also be easy to learn. Because of very high transaction rates and limited processing power, the software design must be very efficient. The system must be available as close to 24x7 as possible.
Which three ISO 25010 major quality characteristics should be tested for possible defects with this implementation?
Which option correctly states the sequence of tasks to be undertaken when re-factoring test cases?
SELECT ONE OPTION
You are ar teviemng the fdbwng Java furxton that deteimates whether a curb*. rput by the user. * Even or Odd Public da»s Oddorfven {
public state void mair^Strcg [ | args) (
Scarcer read - new ScanrerfSystem inje
System out prim (’Pease enter a rxmber ' i;
int Number • reader nextfntO,
if(Number^2»»0)
System out prrrtln " your input number ' Number ♦ * is even ).
else
System out prntirfyour input number ' Number ♦ * is odd*);
)
}
You are Qj > ded by ’.he following checklist
• All variables must start with a Capital letter
• All output messages must start with a Capita letter
• There must De a comment bne e« pla ning the purpose of the dess
How many checklist items Mve been fuelled7
SELECT ONE OPTION
Consider the following control flow graph:

The control flow represents a software component of a car navigation system. Within the project the maximum cyclomatic complexity to be allowed is set at 5.
Which of the following statements is correct?
When conducting a data flow analysis of following section of pseudo code:
Declare Function_Biggest integer (inputl integer. Input2 Integer) }
Declare output Integer
Set output = inputl
If input2 > output then
Set output = input2
Endif
Return output
}
Which of the variables utilized above has a potential anomalie?
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
Which of the following is a valid reason for including performance testing in a test approach?
Which of the following are activities that the Technical Test Analyst performs when setting up a test automation project?
1. Schedule the manual testing
2. Define interface requirements between tools
3. Perform a code review on the functional specifications
4. Determine whether to use a rule-dnven approach
5. Tram the test analysts to use and supply the data
A new web site has been launched for a testing conference. There are a number of links to other related web sites for information purposes. Participants like the new site but complaints are being made that some (not all) of the links to other sites do not work.
Which type of test tool is most appropriate in helping to identify the causes of these failures?