Which of the following statements about Application Programming Interface (API) testing is TRUE?
Which of the following defect types is NOT an example of a defect type typically found with API testing?
An enhancement to a Social Media application allows for the creation of new Groups. Any number of existing application members can be added to a
Group. An attempt to add a non-existing member of the application to a Group will result in an error. Members can also be removed from an existing Group.
Existing Groups can also be deleted but only if there are no current members attached to it.
Which keyword-driven input table provides an adequate test of this enhancement?
You have identified existing test cases that require re-factoring, Which is the NEXT task you should perform?
SELECT ONE OPTION
As Technical Test Analyst on a test automation project covering the acquisition of a commercial test execution tool, what would you MOST likely be responsible for?
Consider the following code segments.
Segment 1:
If a > b then setc = 12
elseif c >7 set c = 5
endif
Segment 2: setc= 12 for n = 1 to c
display c
endfor
Segment 3:
If (a > b) or (c < d) then
set c = 12
else
set c = 5
endlf
Segment 4:
set y = 4
call (segments)
segments:
start
for I = 1 to y
print y
endfor
end
Which segment would receive the highest cyclomatic complexity value?
You have been given this piece of pseudocode to review Assume that the variables have been declared set and validated in code that precedes this piece that you are reviewing Looking only at this part of the code what requires further discussion?
If a < b then
If a > 12 then
seta = 21
else
set a = 23
endif
If b < 17 then
set a = 24
endif
lfb> 14
set a = 25
set b = 10
else
set a = 5
endif
else
set a = 7
endif
Which TWO of the following describe a function of some common web-based testing tools?
A) To generate HTML and XML that is compliant with industry standards such as W3C
B) To provide information on the size of the web pages and on the time necessary to download them
C) To scan and check that no broken or missing hyperlinks are present on a web site
D) To allow applications to be tested by simulating a mobile platform's runtime environment
E) To provide an engine that allows a user to execute a model describing a system's intended run-time behavior
You are part of an agile team creating a user story.
Which of the following requirements engineering techniques would you use to provide a visual representation of the system and help to see the 'overall* story with the functional flow?
SELECT ONE OPTION
Which of the following is a common technical issue that causes automation projects to fail to meet the planned return on investment?
As a technical test analyst, you are involved in a risk analysis session using the Failure Mode and Effect Analysis technique. You are calculating risk priorities. Which of the following are the major factors in this exercise?
Which statement correctly describes continuous testing’
SELECT ONE OPTION
You are working on an internet banking project. Your company is offering this product to the financial market. For each new customer, some customization will typically be needed. To make the product successful there is a strong focus during development on a reliable and maintainable architecture. To support architectural reviews, a checklist will be developed. Within the checklist specific sections will be attributed to reliability and maintainability.
Which question from the list below should you include in the maintainability section of the architectural review checklist?
Consider the following control flow graph:
The control flow represents a software component of a car navigation system. Within the project the maximum cyclomatic complexity to be allowed is set at 5.
Which of the following statements is correct?
Within the world of consumer electronics, the amount of embedded software is growing rapidly. The amount of software in high-end television sets has increased by a factor of about eight over the last six years. In addition, the market of consumer electronics has been faced with a 5 -10% price erosion per year. The price of a product is, among a number of other things, determined by the microcontroller used. Therefore, the use of ROM and RAM remains under high pressure in consumer electronic products, leading to severe restrictions on code size.
Within a new high-end TV project, it has been decided to apply dynamic analysis.
Which of the quality goals listed below is MOST appropriate to the project context?
Which of the following can be executed by model-based testing tools?
Which of the following test categories would best characterize a test designed to confirm that the data backup tapes stored offsite by a bank can be retrieved and loaded within the business process service level agreement?
You are responsible for the non-functional testing of a website supporting a popular restaurant chain. Due to the rapid expansion of the number of restaurants in the chain, the company is expecting the peak number of concurrent website views to more than triple in the next 6 months. As a result, it has purchased two further production servers to support the existing one. A new hardware release has been scheduled for which the following product risk has been recorded:
{Insert Table 2)
Which one of the following non-functional test typos would be BEST to mitigate this risk?
The following epic has been written:
As a vehicle driver
I want to find an available space In a car park
So that I can pay in advance to reserve that space
This epic will be used to develop user stories for a new National Car Parking application Both public and private car park owners will be able to utilise the system, allowing drivers of all kinds to guarantee an available car parking space on arrival at their chosen car park, according to the kind of vehicle that they may drive
There will be multiple stakeholders including different car park owners, different user groups including disabled drivers and different vehicle types such as car. van and motorbike.
From this epic, multiple user stories will be written. The following acceptance criteria have been written for the epic, and will be applicable to all user stories (each user story will also have its own acceptance cntena):
1.End-to-end response time for any individual request submitted by a user must not exceed 5 seconds
2.All correspondence with stakeholders must be via email and text message
3.The application must be accessible on most mobile technology
4.A user cannot submit a form unless all mandatory fields are entered
5.Payment method can be made using the most popular electronic options
Applying the INVEST technique to this epic, including its acceptance criteria, which of the following statements is correct?
SELECT ONE OPTION
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?
Which of the following is a reason for the Technical Test Analyst to take the time to prepare for a code review?
You are conducting security tests on an e-commerce application. Many core areas have been tested and found to have no issues. Protection of users' private information has also been verified. You are now focusing on testing the UI, which captures query information from the user. Which of the following defect types should you target in your testing?
Consider the following section of code:
If ((A > B) or (C > D)) and (E = F) then
print A:
Endif
Which of the following sets of test data can be used to achieve Modified Condition/Decision Coverage with the least number of tests?
Consider the following statements regarding Performance Efficiency Testing:
A) Static Analysis tools can analyze code to identify performance bottlenecks
B) Code reviews are an effective way of detecting performance issues
C) Scalability and Load testing are usually performed during the System test level
D) Performance test execution cannot begin until a production-like environment is available
Which TWO of these statements are TRUE?
Which option below describes the BEST approach for testing a Medium risk mission- or safety-critical system?
SELECT ONE OPTION
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?
You are working on project where re-use of software is an objective. You are involved in the project as a Technical Test Analyst and have been given the task to develop a checklist for code reviews.
Which question from the list below should you implement as part of the code review checklist?
Which option below BEST explains the value of a test charter in exploratory testing"5
SELECT ONE OPTION
Which of the following is a valid reason for including performance testing in a test approach?
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 code contains data flow anomalies on lines 14 and 27. Which examples of data flow anomalies can be found on these lines?
You are testing software that will be used in nuclear power plants. The particular piece of code you are testing has been classified as SIL 2. The following section of code falls under this classification:
If ((A > B) or (C > D)) and (E = F) then print A
Endif
Which of the following sets of test data would supply the minimum tests needed to achieve the "highly recommended" level of coverage?
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
Consider the following specification:
If you are flying with an economy ticket, there is a possibility that you may get upgraded to business class, especially if you hold a gold card in the airline’s frequent flier program. If you don’t hold a gold card, there is a possibility that you will get ‘bumped’ off the flight if it is full when you check in late.
This is shown in the control flow graph below. Note that each box (i.e., statement, decision) has been numbered.
Three tests have been run:
Test 1: Gold card holder who gets upgraded to business class
Test 2: Non-gold card holder who stays in economy
Test 3: A person who is bumped from the flight
What is the level of decision coverage achieved by these three tests?
The following characteristics were identified during an early product risk-assessment for a software system:
• the software system needs to manage synchronization between various processes
• microcontrollers will be used that will limit product performance
• the hardware that will be used will make use of timeslots
• the number of tasks supported in parallel by the software system is large and are often highly complex.
Based on the information provided, which of the following non-functional test types is MOST appropriate to be performed?
You are defining the test approach for an Agile project developing a system to control traffic lights at busy road junctions. The system will use sensors to measure traffic density and flow rates, optimizing traffic flow. While safety-critical, a risk assessment has deemed the project's risk level as low due to the team's expertise.
Which option below represents the BEST test approach for this project?
Key to symbols:
♦+ (highly recommended)
♦ (recommended)
o (neutral/optional)
• (not recommended)
- (not to be used)
SELECT ONE OPTION
Which of the following does NOT contribute to a more effective review preparation by the Technical Test Analyst?
Given the following decision: IF X < 5 OR Y > 10 THEN
Which of the following sets of test inputs will achieve full MC/DC coverage?
Which of the following is a true statement regarding a continuous integration environment?
How many test cases need to be designed to achieve 100% decision coverage in the following piece of pseudo-code which applies discount rates to hotel room bookings?
Read (Loyalty_level)
Read (Room_price)
IF (Room_price > 200)
IF (Loyalty_level = Platinum)
Discount_factor = 80%
ELSE
IF (Loyalty_level = Gold)
Discount_factor = 85%
ELSE
Discount_factor = 95%
ENDIF
ENDIF
ELSE
IF (Room_price > 150)
IF (Loyalty_level = Platinum)
Discount_factor = 85%
ELSE
Discount_factor = 95%
ENDIF
ELSE
Discount_factor = 100%
ENDIF
ENDIF
Room_price = Room_price * Discount_factor
IF (Discount_factor < 100%)
Show message "Congratulations - you have received a discount!"
ENDIF
In order to create a shareable testing service from server or network traffic log data, which of the following types of tool would you use?
SELECT ONE OPTION
Consider the pseudo code provided below regarding a customer request for cash withdrawal from an ATM.
If the customer has sufficient funds in their account
OR the customer has the credit granted
THEN the ATM machine pays out the requested amount to the customer
Which of the following test cases would be the result of applying multiple condition testing, but would NOT be the result of applying modified condition/decision testing?
You are working for a video game manufacturer You have a new title being released Market interest in the product is at an all time high and everyone in the company has been promised huge bonuses if the launch is successful You are responsible for portability testing Which area, m particular should you emphasize in your testing?
You work for a small supermarket chain which has successfully operated a product inventory application for several years. It has recently purchased a data warehousing solution which provides tailorable profiling of product purchases with the aim of improving its marketing strategy. The decision has been made to host the data warehousing software and database on the same server used by the product inventory application. Based on this decision, two product risks have been cataloged:
The co-existence of both applications on the same server may introduce resource conflicts, resulting in an unacceptable impact on the functionality of the product inventory application
In the event of loss or corruption of product inventory data during transfer to the warehouse, it may not be possible to restore from back-up in the timeframe required, resulting in lost business.
Which TWO non-functional test types should be included in the test plan to mitigate both product risks?
Consider the code fragment provided below:
How many test cases are needed for the code fragment lines 26 - 37 to achieve 100% modified condition/decision coverage?
A review of the following pseudo code is to be performed using a checklist:
Module Vowel Counter
Message: array of Characters
M, N: Integer
ACount, ECount, ICount, OCount, UCount: Integer
BEGIN
I=1
Read Nextchar
While Nextchar <> 'S'
DO
Message (I) = Nextchar
I = I+1
Read Nextchar
ENDWHILE
FOR M = 1 To I
DO
Print (Message(M))
IF Message (M) = 'E'
THEN
ECount = ECount + 1
ELSE
IF Message (M) = 'A'
THEN
ACount = ACount + 1
ELSE
IF Message (M) = 'I'
THEN
ICount = ICount + 1
ELSE
IF Message (M) = 'O'
THEN
OCount = OCount + 1
ELSE
IF Message (M) = 'U'
THEN
UCount = UCount + 1
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDFOR
Print ('Message contains ' ACount + ECount + ICount + OCount + UCount ' vowels')
END
Which of the following checklist items would find code errors in this scenario?
A) Are all variables properly declared?
B) Are all loops, branches, and logic constructs complete, correct, and properly nested?
C) Are all cases covered in an IF-ELSEIF, including ELSE or DEFAULT clauses?
D) Are loop termination conditions obvious and invariably achievable?
E) Are there any redundant or unused variables?
You have been assigned the task of defining the risk-based approach to testing the performance efficiency of a new application. Which of the following is an ISTQB defined technique to use for Identifying the risks?
Which of the following statements is true regarding API and GUI testing?
Consider the following section of pseudo code and associated test Input data:
If withdrawal-amount <= amount-on-deposit then Set authorize-transaction = true
Else
If withdrawal-amount <= S100 AND preferred-customer = true then Set authorize-transaction = true
Else
Set authorize-transaction = false
Endif
Endif
Input data set #1
withdrawal-amount = 160
amount-on-deposit = 100
preferred-customer = true
Input data set #2
withdrawal-amount = 500
amount-on-deposit = 500
preferred-customer = false
Input data set #3
withdrawal-amount = 50
amount-on-deposit = 500
preferred-customer = false
What would be the decision coverage achieved if each of these test input data sets were run once?
The following user story has been written:
As a paying hotel guest
I want to see the charges that have been added to my bill
So that I can monitor my expenditure and know In advance how much I will have to pay when I check out
The notes that have been added to It mention that It must be possible for the guest to get a printout of the bill, see It In a variety of currencies and set a flag in the hotel's billing system against any Item that they wish to challenge.
The following acceptance criteria have been defined:
1.The user shall be able to choose from the most commonly-used currencies.
2.The application must be accessible on most mobile platforms as well as on the hotel room's smart TV.
3.The hotel manager must be notified whenever a bill item is flagged by a hotel guest.
4.End-to-end response time for any individual request submitted by a user must not exceed 7 seconds.
Applying the INVEST technique to this user story, including its acceptance criteria, which of the following statements is correct?
SELECT ONE OPTION
You are planning an exploratory test session for the current sprint which includes the following user stories:
User Story AA-008
As a booked customer of Alpha Airways
I want to access an open flight reservation
So that I can update the booking details
User Story AA-012
As a booking clerk for Alpha Airways
I want to access a customer's flight reservation
So that i can view their reservation details
what three things should be considered when creating the session's test charter?
a)What are the user roles specified in the two user stories?
b)What level of coverage and efficiency was should be achieved by the session’
c)Will the session fit within a 60 to 120 minutes time box’
d)Do Will the findings from the exploratory sessions need to be documented?
e)What actions are performed by the user roles according to the acceptance criteria for these user stories’
f)Should the exploratory session be automated’
g)Has the Definition of Done been met for both user stories’
SELECT ONE OPTION
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?
The following user story has been written for a new application being developed to pre-book a space at a National Car Park.
As a vehicle driver
i want to be able to pre-book a car parking space online, selecting a disabled driver's space if needed
So that l can pay in advance and receive confirmation of my parking space number.
The following acceptance criteria have also been written:
•Payment can be made via PayPal, Debit or Credit Card
•Confirmation of payment and car parking details should be sent after the booking process is completed
•Driver information is stored in the reservation database
The database has been built and tested in a previous sprint, but the interface to the different payment methods have yet to be developed
As a tester in an agile team, you have been asked to review the user story You have detected some issues with this story:
1.it needs to cater for different user groups: a driver or disabled driver
2.it needs to cater for different vehicle types: a car. 4x4. van or motorbike
3.There are no acceptance criteria relating to how quick the booking process should be
4.How confirmation is to be sent for payment and space number, and other important details, have not been specified
5.A stub will be needed to test the payment method
Which pair of requirements engineering techniques are you MOST LIKELY to have used to uncover these issues’
SELECT ONE OPTION