ISTQB CTAL TTA
Q: 1
Which statement about test automation is TRUE7
SELECT ONE OPTION
Options
Q: 2
Below is the pseudo-code for the bingo program:
The bingo program contains a data flow anomaly. Which data flow anomaly can be found in this
program?
The bingo program contains a data flow anomaly. Which data flow anomaly can be found in this
program?Options
Q: 3
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?


Options
Q: 4
A new system is being built to handle the message handling of financial transactions - this system is
critical to the organization's finances. The code includes loops and decisions with several multiple
conditions. The nature of the system means that tests are quite time-consuming to execute. Which of
the following would be the BEST white box testing option for the new software?
Options
Q: 5
Which of the following statements about Application Programming Interface (API) testing is TRUE?
Options
Q: 6
Below is pseudo-code which calculates a customer's cruise credits based on past cruise history:
PROGRAM CALC CRUISE CREDITS (CUST_ID)
COUNT_CRUISES, CRUISE_CREDITS, LOYALTY_RATING: INTEGER
CRUISE_LENGTH, CRUISE_ACCOM_TYPE: VAR
LOYALTY_RATING = 0
COUNT_CRUISES = 0
CRUISE_LENGTH = 0
CRUISE_ACCOM_TYPE = 0
BEGIN
READ CUSTOMER'S CRUISE HISTORY TO OBTAIN COUNT OF CRUISES
READ CRUISE_HISTORY (CUST_ID)
WHILE COUNT_CRUISES != -1 DO
READ CUSTOMER'S NEXT CRUISE
READ NEXT_CRUISE
IF CRUISE_ACCOM_TYPE = 3 THEN
CRUISE_CREDITS = CRUISE_CREDITS + 5
ELSE
IF CRUISE_ACCOM_TYPE = 2 THEN
CRUISE_CREDITS = CRUISE_CREDITS + 3
ELSE
CRUISE_CREDITS = CRUISE_CREDITS + 2
ENDIF
ENDIF
COUNT_CRUISES = COUNT_CRUISES - 1
ENDWHILE
LOYALTY_RATING = CRUISE_CREDITS / COUNT_CRUISES
WRITE ("CRUISE CREDIT TOTAL IS:")
WRITE (CRUISE_CREDITS)
END PROGRAM CALC CRUISE CREDITS
The variable Cruise_Length (line 3) results in which type of data flow anomaly?
Options
Q: 7
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?
Options
Q: 8
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?
Options
Q: 9
Given the following pseudocode:
Program tax check
Integer: tax_rate
real: tax%
BEGIN
tax% := 0
GET (tax_rate)
WHILE tax_rate > 0 loop
IF tax_rate > 3 THEN
tax_rate := 3
ENDIF
tax% := tax% + (tax_rate / 10)
tax_rate := tax_rate - 1
ENDLOOP
IF tax% > 0.6 THEN
print ("tax rate is high")
ELSEIF tax% < 0.1 THEN
print ("tax rate is zero")
ELSE
print ("tax rate is low")
ENDIF
END tax check
If control flow analysis is performed on the pseudocode, which of the following results is MOST
likely?
Options
Q: 10
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?
Options
Question 1 of 10