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
You are working on a new product that will provide an online pizza ordering service. Not everyone wants to
create a frequent-eater pizza account, so the user can either log in to their existing account, create an account
or proceed as a “guest" user. People with existing accounts have the option to update their accounts including
changing address, changing credit card information and changing phone number. New account creation
requires the user to enter their address, credit card information and phone number. This information Is
validated to be sure the address matches the credit card information.
Once the user logs in, they are able to order their pizza. They can request up to five different pizzas and can
select different ingredients on each. A user is allowed to pick up to 10 different ingredients per pizza. They can
also select from a pre-defined set of ingredients as follows: “meat lovers", “all veggie’, “cheese please’, and
“throw it all on".
The busiest day of the year for this product will be the day of the final football game of the professional
season. In addition to the normal high load, the company will also be running a special on the “cheese please" pizza (buy 3 get 2 more free). The new product will need to handle a load that Is expected to be twice as high
as the load on the old product last year. Given this information, what is an important item that should be
addressed In the architectural specification?
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 specification-based technique could be used to enhance coverage for this code fragment?
© Copyrights FreePDFQuestions 2025. All Rights Reserved
We use cookies to ensure that we give you the best experience on our website (FreePDFQuestions). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreePDFQuestions.