Which of the following statements is TRUE regarding tools that support component testing and the build process?
A new Payroll system calculates the amount of tax that each employee must pay (TaxToPay) on their gross
monthly salary (in (), and the net salary (NetSal) that they will receive after that amount of tax has been
deducted It also calculates the amounts of tax (TaxPdYTD) and net salary (SalPdYTD) paid in the year to date
(YTD) by adding them to the stored amounts from last month (for month 1 these will be zero), inputs Include
Employee id (Empid) and Gross Salary this month (GrossSal). Tax Rate is looked up on the key of Employee
Id, the amounts of tax and net salary paid in the year to date are looked up on the key of (Employee Id and
[month • 1]) except that for month 1 they will be zero.
if both employees were paid the same in month 1 as in the current month 2. for which tax has now to be
calculated, which data-driven input and expected output table is correct for this situation?
Table 1
MonthEmpidGrossSalTaxRateTaxToPayNetSalTaxPdYTD
212000153001700600
222200204401760880
Table 2
MonthEmpidGrossSalTaxRateTaxToPayNetSalSalPdYTD
2120000.153001700600
2222000.24401760880
Table 3
MonthEmpidGrossSalTaxToPayNetSalTaxPdYTDSalPdYTD
11200030017006003400
12220044017608803520
Table 4
MonthEmpidGrossSalTaxToPayNetSalTaxPdYTDSalPdYTD
21200030017006003400
22220044017608803520 SELECT ONE OPTION
A component has been analysed during a risk-assessment and rated as highly critical. Which of the following
white-box test techniques provides the highest level of coverage and could therefore be used to test this
component?
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
© Copyrights DumpsEngine 2026. All Rights Reserved
We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the DumpsEngine.
