Istqb CTFL Mock Exam#4
Istqb CTFL Mock Exam#4
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
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:
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
IV.Environment used
V.Reproducibility of behaviour
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.
Caution:
Action:
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