Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.
Actual exam question for ISTQB's CTAL-TTA exam Question #: 152 Topic #: 1
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 is the minimum quantity of test cases that will give 100% statement coverage?
To determine the minimum quantity of test cases that will give 100% statement coverage, we need to ensure that each executable statement in the code is executed at least once. Let's analyze the code step by step to identify the necessary paths: * Valid account number and active account: * Crediting money to the account. * Old balance < zero, new balance >= zero (overdraft cleared). * VIP customer: message sent by email. * Valid account number and active account: * Crediting money to the account. * Old balance < zero, new balance < zero (account overdrawn). * Non-VIP customer. * Valid account number and active account: * Crediting money to the account. * Old balance >= zero. * VIP customer: message sent by email. * Valid account number but inactive account: * Set message "A/c inactive". * Send message by email to supervisor. * Invalid account number: * Add to the count of invalid inputs. Considering these scenarios, we can see that the minimum number of test cases to cover all statements is three: * Path with a valid, active account, old balance < zero, new balance >= zero, and VIP customer. * Path with a valid, active account, old balance >= zero, and non-VIP customer. * Path with an inactive account or invalid account number. Therefore, the correct answer is D. 3.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Is the comment made by USERNAME spam or abusive?
Commenting
In order to participate in the comments you need to be logged-in.
You can sign-up / login
(it's free).
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).