CTAL-TTA practice question 4 of 25
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…
Choose your answer, then check it against the explanation.
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
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 is the minimum quantity of test cases that will give 100% statement coverage?
Question 4 of 25
Keep practicing
Take the free CTAL-TTA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CTAL-TTA practice questions
- Question 1Which statement is correct regarding the use of exploratory testing for safety critical s…
- Question 2Which of the following are activities that the Technical Test Analyst performs when setti…
- Question 3Which of the following can be executed by model-based testing tools?
- Question 5When conducting a data flow analysis of following section of pseudo code: Declare C, F, Z…
- Question 6What is the purpose of an HTML checker?
- Question 7Installability testing is usually conducted during which stage in the application's SDLC …
