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?
Given the following pseudo code for a program to solve quadratic equations:
program Quadratic Formula
integer: a, b, c, d
floating point: r1, r2
READ (a)
READ (b)
READ (c)
d := (b * b) - (4 * a * c)
IF d < 0 THEN
PRINT ("Imaginary Roots")
ELSE
r1 := (-b + sqrt(d)) / (2 * a)
r2 := (-b - sqrt(d)) / (2 * a)
PRINT ("first root is: " r1)
PRINT ("second root is: " r2)
ENDIF
END program Quadratic_Formula
Which of the following checklist items is MOST likely to indicate a problem in this program?
A new application for planning journeys on public transport is being developed that will work on mobile devices. Why would you MOST likely include Compatibility testing in the test plan?
Consider the following fault attack:
• Force all possible incoming errors from the software/operating system interfaces to the application.
Which of the following is the kind of failure you are looking for when using this attack?
Which of the following is a valid reason for including performance testing in a test approach?
Which of the following statements about Application Programming Interface (API) testing is TRUE?
Which of the following is a generic risk factor that the Technical Test Analyst must consider?
The requirements specification of a product begins with this sentence:
"The xyz system will provide many new user functions. These must be easy for our operators to use and tolerant of user input errors. These new functions must also be easy to learn. Because of very high transaction rates and limited processing power, the software design must be very efficient. The system must be available as close to 24x7 as possible.
Which three ISO 25010 major quality characteristics should be tested for possible defects with this implementation?
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?
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?
A project to replace your company's sales and merchandising system has begun. The old system is still in production but is poorly documented and expensive to maintain: changing it has often produced a large quantity of defects. The new version will be developed using modern techniques and technology.
Requirements include:
Loading sales data, sent electronically from the stores each evening, into a central database where it is then available for other applications.
Producing sales reports for the merchandisers, whose job is to manage stock levels in stores.
Predictions of future demand for each product, based on a combination of sales history and forecasting parameters.
Requirements 1 and 2 are satisfied by the existing system and will be rewritten with no significant changes. Requirement 3 is new: these forecasting reports will be run overnight, and users will request them by entering simple parameters online during the day.
The sales data are loaded in an overnight batch run. There have been problems at peak periods when this run has taken longer than scheduled, so that dependent jobs could not finish before the start of the working day.
As a Technical Test Analyst, you have been asked to contribute to the project's Master Test Plan. The key stakeholders are:
The Merchandising Manager, who wants parameter entry to be quick and easy.
The Data Centre Manager, who requires the new batch jobs to take less time than the old ones.
No specific performance requirements have been given, either for the batch jobs or for online parameter entry.
Which TWO of the following will BEST meet the objectives of the stakeholders?
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 could be identified using Dynamic Analysis?
A) Objects having too much or too little visibility into parent classes.
B) Repetition of code within a single component or module.
C) System memory not released when it is no longer needed.
D) Pointers in a program that are no longer accurate and must not be used. E. Code that cannot be reached and so will not be executed.
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
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?
The following user story has been developed:
As a customer of Alpha Airways who has booked a flight
I want to access the flight reservation
So that I can update the booking details
Which BDD scenario written in Gherkin format correctly applies to this user story?
SELECT ONE OPTION
You are responsible for the performance testing of a new web application. In particular, you are interested in determining if you have enough and the right type of servers to handle 10,000 concurrent users. Which is the primary consideration when you are selecting your performance testing tools?
Subject to testing is a software system (COTS) for Project Administration and Control (PACS). PACS is a multi-project system for controlling the project time, e.g., in terms of scheduling and tracking, and managing the productivity of projects, e.g., in terms of effort and deliverables.
During various interviews with stakeholders the following information was gathered:
• Using PACS is not business critical. There is no impact such as high financial losses or problems to the operational continuity of an organization. Its application is not critical since the software package does not support directly the operational, or the primary, business processes of an organization. It supports (project) management in the project planning and tracking process. Of course, it will be highly annoying for users if the system “goes down” from time to time. Although this does not have a high impact for the business process as a whole, the Mean Time Between Failures (MTBF) still needs to be at a good level to be successful in the market.
• Users of PACS typically have an academic educational level, but have no prior experience with this particular type of project management software. The system will be used by a large number of users within an organization.
• The system will be used on a regular basis, e.g., several times per day by project managers and several times per week by project employees. This means that the system will not be used very intensively, often only for some data input or an information request. Its usage is not considered to be very time-critical.
• The data is recorded on-line and real-time. The system is expected to run in multiple hardware environments in various network environments. It is also expected that changes in the operational environments will happen in the upcoming period that also need to be supported.
Based on the information provided by the stakeholder, which combination of non-functional quality characteristics should you propose to test as part of your test approach?
Consider the pseudo code provided below:
Given the following tests, what additional test(s) (if any) would be needed in order to achieve 100% statement coverage, with the minimum number of tests?
Test 1: A = 7, B = 7, Expected output: 7
Test 2: A = 7, B = 5, Expected output: 5
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
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?
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
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
Which of the following statements about performance testing tools is NOT correct?
At which test level would performance efficiency testing most likely be performed?
You are an experienced tester on an Agile team that is producing a new application. The product backlog has been refined sufficiently to begin development for the first release. This stories in this backlog contain a mixture of functional and non-functional requirements, as well as some technical stories that will provide elements of the application's infrastructure The developers have decided to use TDD as a deveiopment approach but automation of the acceptance tests is not yet planned.
You have been asked to recommend whether or not the team should take an atdd approach as well as TDD. what would be the BEST recommendation in these circumstances?
SELECT ONE OPTION
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.
You are a Technical Test Analyst involved in the review of the architecture of this project.
Which of the following issues would be MOST important to focus on during the review and when verifying the correct implementation?
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?
Given the following code:
If x > y and z = 3 statement!
elself z = 4
statement2
endif;
What is the minimum number of tests needed to achieve 100% statement coverage?
You are ar teviemng the fdbwng Java furxton that deteimates whether a curb*. rput by the user. * Even or Odd Public da»s Oddorfven {
public state void mair^Strcg [ | args) (
Scarcer read - new ScanrerfSystem inje
System out prim (’Pease enter a rxmber'i;
int Number • reader nextfntO,
if(Number^2»»0)
System out prrrtln "your input number 'Number ♦ * is even ).
else
System out prntirfyour input number 'Number ♦ * is odd*);
)
}
You are Qj>ded by ’.he following checklist
•All variables must start with a Capital letter
•All output messages must start with a Capita letter
•There must De a comment bne e« pla ning the purpose of the dess
How many checklist items Mve been fuelled7
SELECT ONE OPTION
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?
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
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 statement about component testing tools and build automation tools is TRUE?
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?
You are working for a company that has a product in the field that has reached its capacity. The system cannot handle any more users without a significant degradation in performance and a significant spike in resource requirements. As a result, your new product has strict requirements for performance efficiency and a specific growth requirement that is estimated for the next three years.
What type of testing should you conduct to make sure the future requirements will be met?
The F in the mnemonic FIRST stands for Fast Which option correctly states the meanings of the other four letters (IRST)?
SELECT ONE OPTION
A software company based in Spain that develops mobile applications expects many small updates in the future, e.g., due to changing configurations and customer feedback. The company also wants to focus on being able to change the software effectively and efficiently during initial development without introducing new defects.
Which maintainability sub-characteristic should be covered by the test approach during the initial development?
Which option correctly states the sequence of tasks to be undertaken when re-factoring test cases?
SELECT ONE OPTION
You are testing software that requires you to enter defined order numbers and either add, delete or update the information associated with that order number, which of the following is the minimum set of columns you should see in your keyword-driven input table?
You are asked to provide a practical and pragmatic testing solution for a commercial system where the main user interface is via the Internet. It is critical that the company’s existing good name and market profile are not damaged in any way. Time to market is not a critical issue when appropriate testing solutions are identified to mitigate business risks.
A product risk assessment has revealed the following product risk:
• Abnormal application termination due to connection failure of the main interface.
Which of the following is the appropriate test type to address this risk?
Which of the following is a common technical issue that can result in an automation project failing?
Consider the pseudo code for the Answer program:
Which of the following statements about the Answer program BEST describes the control flow anomalies to be found in the program?
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?
You are defining the test approach for an Agile project release focused on significantly overhauling the user interface of a golf club's booking system. Additional features will allow more flexible bookings across three courses. These changes are driven by numerous customer complaints about the current system's confusing design and limited options. The release will consist of six two-week sprints.
Stakeholders have performed a risk assessment and consider the impact of system failure as high due to potential customer loss. A regression-averse strategy is recommended due to the extensive changes expected in screen design and functionality.
Which option below represents the BEST test approach for this release? Please use the following symbols consistently:
♦+ (highly recommended)
♦ (recommended)
o (neutral/optional)
• (not recommended)
- (not to be used)
SELECT ONE OPTION