Istqb CTFL Mock Exam#4

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 22

ISTQB CTFL MOCK EXAM#4

Question 1
Consider the following function :
double interest(double avg_balance, double annual_rate)
/* Calculate the monthly intereset for an
** interest-bearing checking account, basing
** the interest on the monthly average balance.
** if the avg_balance is less than zero, negative
** interest is calculated, but other modules
** handle overdraft charges.
** Annual rate is expressed as a percentage. */
{
double calc_int= 0.0;
if(avg_balance > 0.0) {
double monthly_rate = annual_rate/12.0;
calc_int = avg_balance * (monthly_rate/100.0);
}
return(calc_int);
}
Assume that you have a test harness that will allow you to submit test values
to the interest function (the inputs) and to check the values it returns(the
outputs),rounded to the nearest cent. Which of the following test cases achieves
100% decision coverage with the minimum number of tests? Assume the inputs are
the first two numbers in each triple, and the output the third.
Select one:
a. 100.0, 5.0, 0.42; 0.0, 2.5, 0.0; -50.0, 1.25, 0.0
b. 100.0, 5.0, 0.42
c. 100.0, 5.0, 0.42; -50.0, 1.25, 0.0
d. 100.0, 5.0, 0.42; 0.01, 25.0, 0.0; 0.0, 2.5, 0.0; -0.01, 10.0, 0.0; -50.0, 1.25, 0.0
Question 2
Testing Can:
Select one:
a. Find, analyze, and remove the causes of failures
b. Eliminate the possibility that there are no remaining undiscovered bugs.
c. Measure the quality of software in terms of defects found
d. Find new bugs through repetition of the same tests.
Question 3
What is static analysis ?
a. A step-by-step presentation by the author of a document in order to gather
information and to establish a common understanding of its contents
b. A peer group discussion activity that focuses on achieving consensus on the
technical approach to be taken.
c. Analysis of software artifacts, e.g. requirements or code, carried out without
execution of these software artifacts.
d. A review characterized by documented procedures and requirements
Question 4
What is error guessing ?
Select one:
a. A test design technique where the experience of the tester is used to anticipate
what defects might be present in the component or system under test as a result of
errors made, and to design tests specifically to expose them.
b. The ability of a system or component to continue normal operation despite the
presence of errorneous inputs.
c. An informal test design technique where the tester actively controls the design
of the tests as those tests are performed and uses information gained while testing
to design new and better tests.
d. The process of intentionally adding known defects to those already in the
component or system for the purpose of monitoring the rate of detection and
removal, and estimating the number of remaining defects.
A test design technique where the experience of the tester is used to anticipate
what defects might be present in the component or system under test as a result of
errors made, and to design tests specifically to expose them.
Question 5
Which of the following is a test level discussed in the ISTQB Foundation
syllabus ?
Select one:
a. Performance test
b. Component test
c. Confirmation test
d. Regression test
Question 6
What is data -driven automated test scripting?
Select one:
a. A scripting technique that stores test input andexpected results in a table or
spreadsheet,so that a single control script can execute all of the tests in the table
b. Data that exists(for example, in the database)before a test is executed and that
affects or is affected by the component or system under test
c. A scripting technique that uses data files to contain not only test data and
expected results,but also keywords related to the application being tested.
d. A statement of test objectives, and possibily test ideas on how to test
Question 7
Which of the following is a general principle of testing ?
Select one:
a. Analysis and design
b. Planning and control
c. Implementation and Execution
d. Early testing
Question 8

Which of the following is not a reason for testing based on intution,experience and
Knowledge?
Select one:
a. To identify special test conditions
b. To allow non-expert testers to participate in test execution
c. To augment systematic techniques
d. To go beyond tests created with formal techniques
Question 9
Consider the following test levels discussed in the ISTQB Foundation syllabus
2005.

I.Component test

II.Integration test

III.System test
IV.Acceptance test

Which of these levels are explicitly discussed


in the syllabus as benifiting from test design based on use case?
Select one:
a. I,II and III Only
b. II,III and IV Only
c. All four levels
d. III only
Question 10
What is a stub ?
Select one:
a. A skeletal or special-purpose implementation of a software component, used to
develop or test a component that calls or is otherwise dependent on it.
b. The effect on the component or system when it is being measured
c. A test environment needed to conduct a tester
d. A software component or test tool that replaces a component that takes care of
the control and/or the calling of a component or system.
Question 11
You are working on an e-commerce project. During the analysis portion of the test
process, you become concerned about possible slow response to customer requests
when the system is under ordinary load. Which of the following statements best
describes the situation ?
Select one:
a. The application's performance will fail to meet requirements during testing
b. Response time is not a quality attribute for e-commerce applications
c. You have identified a product risk that should be considered for testing.
d. You have identified a project risk which is unlikely to affect testing.
Question 12
You are currently engaged in working as a test manager on a large project.
You anticipate a large number of defects in the system.
What kind of tool support might be helpful to you a as a manger ?
Select one:
a. Static analysis
b. Test execution
c. Test comparator
d. Incident management
Question 13
what is impact analysis?
Select one:
a. Testing of a previously tested program following modification.
b. The assessment of the impact of a change to the layers of development
documentation,test documentation and components
c. Testing the changes to an operational system or the impact of achanged
environment to an operational system
d. The process of assessing identified risks to estimate their impact and probability
of occurence.
Question 14
You are brought in as the sole tester at the end of a project.
You were selected because of your understanding of the system and
its intended behavior. Users, customers, and other project
stakeholders consider the software low-risk. You are given one week
to execute tests to see if any show-stopping defects are present.
Which of the following is likely to be your main test design technique ?
Select one:
a. Static testing
b. Experience-based
c. Structure-based
d. Specification-based
Question 15
What is Iterative lifecycle model?
Select one:
a. A development lifecycle where a project has multiple test levels,Which are
referred to as iterations
b. A development lifecycle where code is written by two programmers sitting at a
single computer.
c. A development lifecycle where a project is broken into a number of iterations
d. A development lifecycle where a project is outsourced to a number of
development teams.
Question 16
You are working on a project on which any slippage in the test execution
completion date would result in financial penalties for your employer.Achieving
the planned delivery date is seen as the highest single priority.Which benefit of
static techniques is likely to convince management to use them?
Select one:
a. Improved communication within the team
b. Reduced post-release support costs.
c. Reduced testing cost and time
d. Productivity Improvements
Question 17
Consider the following excerpt from a defect report:

This is the third time this bug has come back.


Every time we hit this problem in test,it
costs us 3-5 person-hours of effort.Really,this is ridiculous.
You developers are Killing our productivity.

Which of the following statements is true?


Select one:
a. This excerpt does not conform to best practices in terms of tester/developer
communications
b. This excerpt belongs in the impact section of an IEEE829 incident report
c. This excerpt belongs in an IEEE829 test log,not an IEEE829 incident report
d. This excerpt belongs in the incident description section of an IEEE829
incidentreport.
Question 18
Which of the following is a development lifecycle model discussed in the ISTQB
Foundation syllabus ?
Select one:
a. Iterative
b. Validation
c. Verification
d. CMM
Question 19
Consider the following work products, test types, and test levels:
I System architecture design document
II. Use case document
III.Functional testing
IV. Structural testing
V. Integration testing
VI. Acceptance testing
Which of the following statements are true ?
Select one:
a. I is useful for IV during V; II is useful for III during VI.
b. II is useful for IV during V; but I is not useful for III during VI.
c. I is not useful for IV during V; but II is useful for III during VI.
d. II is useful for IV during V; I is useful for III during VI.
Question 20
You are working on testing an e-learning application. A business analyst gives you
a document
that describes the most common user scenarios. You would use this document to
create what
kind of tests ?
Select one:
a. Component tests
b. Specification-based tests
c. Experience-based test
d. Structure-based test
Question 21
Which of the following is a way in which configuration management supports
testing ?
Select one:
a. Uniquely identifies the tested item.
b. No benefits; configuration management is outside the scope of testing
c. Automatically determines the location of any defects found.
d. Ensures that code has been unit tested
Question 22
You are testing a credit-card only,unattended gasoline pump.
Once the credit card is validated,the customer has selected the
desired grade,and the pump is ready to pump,the customer may cancel
the transaction and owe nothing;however ,once the pumping starts,gasoline
will be sold in hundredths(0.01)of a gallon.The pump continues to pump gasoline
untill the user stops or a maximum of 50.00gallons has been dispensed.
Which of the following is a minimum set of gasoline purchase transactions
(in gallons of gasoline dispensed)that covers the boundary values for this variable?
Select one:
a. -0.01,0.00,25.00,49.99,50.00,50.01,75.00
b. 0.00,0.01,50.00,70.00
c. 0.00,20.00
d. 0.00,0.01,50.00,50.01
Question 23
Consider the following:
I. Prevent defects
II. Remove defects
III.Gain confidence in the system
IV. Provide information
V. Find defects
Which of the following statements is true ?
Select one:
a. I, III, IV and V are common test objectives
b. I, II, III, and V are common test objective
c. II and V are common test objectives
d. All are common test objectives.
Question 24
What is regression testing ?
Select one:
a. Testing to determine the reliability of a software product
b. Testing of a previously tested program following modification
c. A synonym for confirmation testing
d. Testing that runs test cases that failed the last time they were run

Question 25
You are working as the manager of an independent test team.
At a project meeting, you are explaining the results of your testing so far.
You show the team that, while testing is proceeding productively,
it is taking a while to get some critical bugs and test failures resolved.
Another manager comments that he is concerned that the test team is
delaying the release of the software.
Which of the following is a drawback of independent testing illustrated by this
manager's comment ?
Select one:
a. The test team is isolated from the rest of the project team.
b. The test team is seen as responsible for the delays.
c. Independent testers can verify assumptions that other people made
d. Independet testers see other and different defects, and are unbiased
.
Question 26
Consider the following factors:
I. Rolling out the tool incrementally
II. Adapating and improving processes to fit the tool
III.Providing training for new users
IV. Defining usage guidelines
V. Implementing to continuosulsy improve tool use
Which of the following statements is true ?
Select one:
a. Factor I is important to successful deployment of a test tool, but II, III, IV and V
are not important
b. Factors I, III, IV, and V are important to successful deployment of a test tool,
but II is not important
c. All thest factors are important to successful deployment of a test tool
d. Factors I, II, and III are important to successful deployment of a test tool, bu IV
and V are not important.
Question 27
You are working as a test manager. The project involves developing software for a
customer
whihc is also the end-user. You are in charge of system test. One of the test suites
your team
has run during system test is the acceptance test suite, which is based on the
customer
requirements and contractually defined. The customer's most experienced users
will run the
acceptance test suite on delivery. Final payment and acceptance of the software by
the
customer is contingent on the successful completion of these tests. In a project
meeting near
the end of the project, you report that 15 of the acceptance tests, about five percent
of the
total number acceptance tests, failed. If you are asked in the meeting about why the
team
should be concerned about th efailed tests, which of the following might be a
reasonable reply
?
Select one:
a.
"Depending on th customer's reaction to some of the bugs that affect those tests,
we might have contractual problems with acceptance and final payment."

b. "Oh, I'm sorry, I shouldn't have mentioned those tests and their status, as that's
not appropriate test progress monitoring data."
c. "All software should always be released completely defect-free, and this
software does not meet that standard."
d.
"It doesn't matter, really, since the customer's will be satisfied as long 80% of the
tests pass."
Question 28
A tester is performing a test.She notices an unusual amount of network access
during a period
when she knows the application should not be accessing the network.Even though
the test does
not specify comparing actual network access to an expect result,She decides to
investigate.This
is an example of what?
Select one:
a. A tester's curious mindset.
b. A tester's effective communication with development.
c. A tester performing maintenance testing.
d. A tester performing exhaustive testing.
Question 29
You are testing system response time under load during integration testing. What
test type are you performing ?
Select one:
a. Change related
b. Structural
c. Functional
d. Non-functional

Question 30
Consider the following excerpt from a bug report:

To recreate the failure, we used test fileTS0ITCO72.dat,


Which is available in the shared test directory.

Which incident report objective does this excerpt satisfy?


Select one:
a. Provides developers with the information to isolate the failure
b. Provides idea for test process improvement
c. provides test leaders with information to report test progress
d. Does not belong in an incident report
Question 31
You are working on an project to build an online banking application.
Consider the following excerpt of the requirements specification:
The system shall allow the customer three attempts to enter a valid user ID
and password at the welcome screen.If three invalid user ID/Password
combinations have been entered,the system shall temporarily lock the users
account.
You have written a testdesign specification that includes,among others, the
following two test conditions:

Test successful user ID/password login with:Zero failed attempts before


success;one
failed attempt before success.

Test unsuccessful user ID/Password login

Which of the following is a set of test cases that has clear traceability to,and
complete coverage of,exactly one of the test conditions listed?
Assume the inputs are the first two items in each triple,and the expected result the
third.
Select one:
a. test1,invalid1,fail;test1,valid1,fail.
b.
test0,valid0,,success:test1,invalid1,fail;test1,valid1,success:test2,invalid2,fail;test2,
valid2,success.
c. test0,valid0,,success.
d. test1,invalid1,fail;test1,valid1,success.
Question 32
Consider the following list of typical test strategies:
I. Analytical
II. Model-based
III.Methodical
IV. Standard-compliant
V. Heuristic
Which of the following statements is true ?
Select one:
a. All five test strategies, I, II, III, IV and V are inherently preventive strategies
b. Only V is inherently reactive
c. III, IV and V are inherently reactive
d. All file strategies, I, II, III, IV and V are inherently reactive strategies
Question 33
You are running a written test which other testers have run previously. In addition,
this test has
found bugs previously, and those bugs have been confirmed to be fixed. The test
manager has
encouraged you to vary the specific way in which you run the test, such as the
order of certain
actions, the use of mouse versus hot-keys, and the particular inpur values, based on
the way
users will use the system. Which of the following is a testing principle that could
explain the test
manager's directive ?
Select one:
a. Early testing
b. Pesticide paradox
c. Absence-of-error fallacy
d. Random testing
Question 34
Consider the following pieces of information:

I.Inputs provided

II.Actual results observed

III.Expected results under these conditions

IV.Environment used

V.Reproducibility of behaviour

Which of the following statements is the most accurate


if we are talking about an incident report that complies
with the IEEE 829 standard?
Select one:
a. Items I,II,IV, and V belong in an incident report.
b. All of this information belongs in an incident report.
c. None of this information belongs in an incident report.
d. Items I,II and III belong in an incident report.
Question 35
Which of the following roles is not a role played in a typical formal review ?
Select one:
a. Business analyst
b. Moderator
c. Author
d. Reviewer
Question 36
A test manager presents atest status summary report to the project team.Based on
this report,
the project team decices to extend the test execution period by three weeks to allow
additional
bugs to be found and fixed.What does the situation illustrate?
Select one:
a. The fundamental testing process
b. The absence-of-errors fallacy
c. The contrasting mindset of developers and testers
d. The Contribution of testing to higher quality

Question 37

You are testing a banking subsystem that provides overdraft protection for
cutomers who have this feature for their checking accounts.
Overdraft protection allows the customer to temporariliy overdraw their account
balance,with some predefined credit limit,withouthaving checks returned unpaid.

A portion of the decision table describing that feature is shown below.

Caution:

Balance exceeded No yes yes

Credit limit okay - yes no

Action:

Honor check yes yes no

Return check no no yes

Send notice no yes yes

How many test would you design to cover the decision table?

Select one:
a. 15
b. 5
c. 3
d. 2

Question 38
You are testing an automobile with a software-controlled on/off switch for the
motor.
The motor has two states, not running and running. There are two events that can
occur,
an on signal and an off signal. If the motor is not running, pressing the on/off
switch sends
the software an on signal that tells the software to try (for up to five seconds) to
start the
motor. If the motor fails to start, the on/off switch can be pressed again to retry the
operation
as many times as the driver would like. In other words, there are two conditions,
succeed and
fail, that influence the resulting state of the motor and the action taken but he
software based
on the on signal. If the motor is running, the on/off swithc tells the software to stop
the motor
immediately if it would be safe to do so. If the motor cannot be safely stopped, the
software
will give the driver a verbal warning: "Motor cannot be safely stopped." In other
workds, there
are two conditions, safe and unsafe, that influence the resulting state of the motor
and the
action taken by the software based on the off signal. Assume you want to describe
this
behavior in a state transition table to design a set of tets for both valid and invalid
situations.
Assume each row in the table give the initial state, the event/condition
combination, the
resulting state, and the action taken. How many rows will this table have ?
Select one:
a. 8
b. 6
c. 4
d. 2
Question 39
Which of the following is a difference between the contents of a test case
specification and a test procedure specification ?
Select one:
a. The test procedure specification is used only for automated test execution.
b. The test procedure specification specifies the sequence of action for the
exection of a test.
c. The two terms are synonyms and have exactly the same contents
d. The test case specification specifies the sequence of action for the execution of
a test.
Question 40
You are testing an e-commerce system that sells cooking supplies such as spices,
flour, and
other items in bulk. The units in which the items are sold are either grams (for
spices and other
expensive items) or kilograms (for flour and other inexpensive items). Regardless
of the units, the
smallest valid order amount is 0.5 units (e.g., half a gram of cardamom pods) and
the largest
valid order amount is 25.0 units (e.g., 25 kilograms of sugar). The precision of the
units filed is
0.1 units. Which of the following is a set of input values that over the equivalence
partitions for
this field ?
Select one:
a. 10.0, 28.0
b. 12.3
c. 0.4, 0.5, 25.0, 25.1
d. 0.2, 0.9, 29.5

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy