ISTQB CTAL Practice Test - Questions Answers, Page 5
List of questions
Related questions
A software company developed a software application for a Life Insurance Company. The testers of the software company were given the release to test. The software application calculates the annual life insurance cost based on customers' age. Life insurance cost is as follows per year;
# Age 18 or less: US $ 300
# Age over 18 or less than 70: US $ 500
# Person has to be at least 1 year old to purchase insurance
If a customer enters any other age, the software prints an error message. The Application accepts only positive integer values (no decimals). How many test cases at minimum can you derive using both Boundary Value analysis and Equivalence partitioning to test the life insurance application?
A Car sales company is financing their customers' vehicles. Financing interest rates are as follows:
(I) For all motorcycles:
a) Customer Credit score 300 - 550
# Annual income US$ 40K-80K - Interest rate 15%
# Annual income US$ 81K-100K- Interest rate 12 %
# Annual income US $ 101K or more - Interest rate 9 %
b) Customer Credit score 551- 680
# Annual income US$ 40K-80K - Interest rate 12%
# Annual income US$ 81K-100K- Interest rate 9 %
# Annual income US $ 101K or more - Interest rate 7 %
c) Customer Credit score 681 or more
# Annual income US$ 40K-80K - Interest rate 10%
# Annual income US$ 81K-100K-Interest rate 6
# Annual income US $ 101K or more - Interest rate 5 %
(II) For all other vehicles the interest rate is 1 % less (from the values given above) for each category mentioned.
a) Ex: Customer Credit score 300 - 550 Annual income US$ 40K-80K - Interest rate 14% and so on.Select the correct decision table from the decision tables given below for the above scenario
A Car sales company is financing their customers' vehicles. Financing interest rates are as follows:
(I) For all motorcycles:
Select the correct state transition diagram for the following train door open/close scenario. When the train is moving, the train doors are closed. After train stops at a station, doors will be opened by the operator, passengers take off and new passengers board the train. Doors will be opened for 40 seconds at the train station. Train doors will be closed when the train is not in service.
Each number represents a state in the following online shopping cart state transition diagram. Select the correct pair.
Use the following code;
x=1
y=2
z=3
If (x = = 2)
{
print "Hi There !";
}
else
{
print "Good bye";
}
z=x + y;
if (z ==4)
{
print "Welcome Back!";
}
else
{
print "Thank you";
}
How many test cases, at minimum, are required for statement coverage?
Use the following code;
x=1
y=2
z=3
If (x = = 2)
{
print "Hi There !";
}
else
{
print "Good bye";
}
z=x + y;
if (z ==4)
{
print "Welcome Back!";
}
else
{
print "Thank you";
}
How many test cases at minimum are required to test branch / decision coverage?
Use the following code;
x=1
y=2
z=3
If (x = = 2)
{
print "Hi There !";
}
else
{
print "Good bye";
}
z=x + y;
if (z ==4)
{
print "Welcome Back!";
}
else
{
print "Thank you";}
How many test cases at minimum are needed to test the path coverage?
A College Enrollment application used by ABC College calculates the amount each student has to pay for gym and computer lab usage. The application asks for Student ID, Name and Student's major.
Then the application calculates the fee. If student's major is Computer Science, they have to pay the full computer lab fee. If the student's major is not Computer Science, they have to pay only 1/3 rd of the computer lab fee. All students have to pay for the gym membership. How many tests are required for path coverage of the above application?
Consider the following perl code;
$x = 100;
If ($account > 100)
{ for ($deposit =
1
;
$
deposit >
3
;
$
deposit ++)
{$x=$x+1;
}i
f ($account <= 100)
{ for ($withdraw =
0; $
withdraw >
2
;
$
withdraw ++)
{
$x=$x-1;
}}
$x=$x+100;
How many test cases at a minimum are needed to test the path coverage?
Question