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?
A medical company has performed a safety criticality analysis using the IEC61508 standard. The software components to be developed have been categorized by Safety Integrity Level (SIL). Most components have been rated at SIL 1 or 2, and a few components at SIL 4.
After some discussions with the QA manager, the project has decided to adhere to the recommendations for test coverage provided by the IEC61508 standard.
Which level and type of test coverage should at least be used for the components rated at Safety Integrity Level (SIL) 2?
Which of the following are activities that the Technical Test Analyst performs when setting up a test automation project?
1.Schedule the manual testing
2.Define interface requirements between tools
3.Perform a code review on the functional specifications
4.Determine whether to use a rule-dnven approach
5.Tram the test analysts to use and supply the data
You have been assigned the task of conducting the performance efficiency testing for a new Internet toolbar. Which of the following would be a valid test condition for this quality characteristic?
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?
You have been assigned to perform a review on code provided below:
Which type of defect should you report as part of the code review?
Consider the following pseudocode segment:
set a = 1
while a < 12
display “this is loop", a
if a > 10 then
display "loop is > 10’
set a = 5
else
display “loop is < 11*
endif
end while
display “Final value of a is", a
Which of the following issues should be detected in the code review?
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 percentage of decision testing coverage has been achieved by the following suite of test cases?
Test Case A - Account number valid, account is active, oldBalance = -100, balance now = +200, not a VIP customer
Test Case B - Account number valid, account is active, oldBalance = -100, balance now = -50, is a VIP customer
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?
Given the following pseudocode:
Program tax check
BEGIN
yearly := 0
tax := 0
get (monthly)
get (tax_rate)
for I = 1..12 loop
yearly := yearly + monthly
tax := tax - (tax_rate * monthly)
ENDLOOP
salary := monthly * 12
IF salary = yearly THEN
print ("Salary OK")
ELSE
print ("Salary not OK")
ENDIF
year_tax := salary * tax_rate
IF year_tax = tax THEN
print ("Tax Problem")
ENDIF
END tax check
If control flow analysis is performed on the pseudocode, which of the following results is MOST likely?
A new web site has been launched for a testing conference. There are a number of links to other related web sites for information purposes. Participants like the new site but complaints are being made that some (not all) of the links to other sites do not work.
Which type of test tool is most appropriate in helping to identify the causes of these failures?
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 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?
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?
When conducting a data flow analysis of following section of pseudo code:
Declare Function_Biggest integer (inputl integer. Input2 Integer) }
Declare output Integer
Set output = inputl
If input2 > output then
Set output = input2
Endif
Return output
}
Which of the variables utilized above has a potential anomalie?
Which of the following statements about Application Programming Interface (API) testing is TRUE?
Assume you are involved in testing a Health Insurance Calculation system.
At the main screen one can enter information for a new client. The information to be provided consists of last name, first name and date of birth. After confirmation of the information, the system checks the age of the potential new client and calculates a proposed premium.
The system also has the option to request information for an existing client, using the client’s ID number.
A keyword-driven automation approach is being used to automate most of the regression testing.
Based on the information provided, which TWO of the options provided would be the MOST LIKELY keywords for this application? (Choose two.)
Consider the pseudo code provided below:
Which of the following options provides a set of test cases that achieves 100% decision coverage for this code fragment, with the minimum number of test cases?
Assume that in the options, each of the three numbers in parenthesis represent the inputs for a test case, where the first number represents variable “aâ€, the second number represents variable “bâ€, and the third number represents variable “câ€.
What is the earliest stage in the application's SDLC at which performance efficiency testing can be performed?
Which statement about component testing tools and build automation tools is TRUE?
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 option below describes the BEST approach for testing a Medium risk mission- or safety-critical system?
SELECT ONE OPTION
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?
Which of the following is a true statement regarding a continuous integration environment?
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?
BestFor Incorporated is a rapidly growing online financial services company that offers guidance to its customers on a range of financial products. Its first website, BestForMortgages, was launched two years ago, shortly followed by BestForPensions. The popularity of both sites has driven the company to expand its offerings into other sectors and a third website, BestForFood, has recently been released.
The first two websites have proven to be functionally robust but suffered from performance issues due to:
Underestimation of concurrent user access at peak times in its original operational profiles
Data volumes rapidly growing beyond expectations on a single database shared by both sites.
All three websites share the same web server.
The BestForFood system has been running live for several months, however the following significant non-functional defects have been recorded:
A) The layout and navigation of the BestForFood website was not considered by the users as consistent with BestForPensions and BestForMortgages
B) Soon after delivering the BestForFood system the performance of both BestForPensions and BestForMortgages noticeably slowed
C) The time taken to diagnose, repair and re-test production defects did not meet BestForFood service level agreements
D) BestForFood performance was adversely impacted by unexpected growth in data volumes
E) The time taken to install monthly builds into the production system exceeded agreed timescales.
Which TWO of these defects might have been prevented had portability testing and compatibility testing been employed?
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
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
Which statement is correct regarding the use of exploratory testing for safety critical systems?
SELECT ONE OPTION
Which option below BEST explains the value of a test charter in exploratory testing"5
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 is being developed using the 8DD approach:
As a Purchasing Manager
i want to see a list of all Purchase Orders placed so far this month with their total value
So that I can control the amount of money being spent
Which scenario is BOTH written in correct Gherkin format AND is appropriate for this User Story9
SEI ECT ONE OPTION
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?
Below is the pseudo-code for the Win program:
The bingo program contains a data flow anomaly. Which data flow anomaly can be found in this program?
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
Your team is developing an e-shop application (the SUT) that will use a third-party service to process payments via an API. This third-party payment gateway is itself still under development Which statement contains a pair of benefits that can BOTH be expected from service virtualization in this circumstance’
SELECT ONE OPTION
Which of the following statements BEST describes how tools support model-based testing?
Consider the pseudo code for the Price program:
Which of the following statements about the Price program describes a control flow anomaly to be found in the program?
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
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?
You are working on a complex systems integration project that will soon be deployed to the production environment. This system is replacing a system that was popular with the users and had no outstanding non-functional issues. There are multiple components that interact and these have been developed by various development and testing groups including some outsourced groups. You will be leading the performance testing effort. Although you would prefer to have a dedicated test system for this effort, you will have to use the production system. You can do this testing at a low usage time, but there will be some users on the system and you will be using real data for the tests. You are now planning your performance testing. Unfortunately, there are no requirements for the performance requirements of the system. How do you determine the acceptable performance levels for the various operational profiles?
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.