CS341 Software Quality Assurance and Testing: Final Examination Semester 1 2017
CS341 Software Quality Assurance and Testing: Final Examination Semester 1 2017
Final Examination
Semester 1 2017
Mode: Face-to-Face
Instructions:
Answer All questions from Sections A, Band C in the exam booklet provided
This exam is worth 40% of your overall mark. Minimum pass mark for this exam is 40/100.
Page 2 of 10
5) Software Quality Assurance risks include:
6) There are four key ways of dealing with risks, you can:
7) Given the following types of tool, which tools would typically be used by
developers, and which by an independent system test team?
1. static analysis
11. performance testing
lll. test management
IV. dynamic analysis
[A] developers would typically use i and iv; test team ii and iii
[B] developers would typically use i and iii; test team ii and iv
[C] developers would typically use ii and iv; test team i and iii
[D] developers would typically use i, iii and iv; test team ii
[E] developers would typically use i, and ii; test team iii and iv
8) .Which of the following values for age are in the same Equivalence Partition?
- If you are less than 18, you are too young to be registered for program.
- Between 18 and 50 inclusive, you will receive a 20% discount.
- Anyone over 50 is not eligible for a discount.
Page 3 of 10
9) What are the criteria to decide the testing efforts?
[A] 1,3,4
[B] 1,2,3
[C] 1,4
[D] 1,3
[E] 3,4
10) Which ofthe following statements is correct about the C#.NET program
given below?
using System;
namespace IndiabixConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
int index = 6;
int val = 44;
int[] a = new int[5];
try
{
a[index] = val;
}
catch(IndexOutOfRangeException e)
{
Console.Write("Index out of bounds ");
}
Console.Write("Remaining program");
}
}
}
Page 4 of 10
11) ReadA,B
IfA>=2
PrintA+B
else
PrintA-B
EndIf
JfB<l
PrintB-A
EndIf
For the above algorithm what will be the minimum number oftest cases required to
achieve 100% Statement Coverage (SC) and Decision Coverage (DC)?
[A] SC = 1, DC=2
[B] SC = 1, DC=3
[C] SC=2, DC=2
[D] SC=2, DC=3
[E] SC=3 , DC =3
Page 5 oflO
Section B
Three Questions (Each is worth 20 marks)
b) What is Defect Tracking? Describe the defect life cycle workflow by using a
diagram and text. (5 marks)
d) Describe up to SIX different types oftesting that might be carried out during a
software development project. Explain how each type oftesting contributes to
the overal~ quality of the project's deliverables. (6 marks)
Page 6 of 10
15) (20 Marks)
Currently, each customer has to contact the company to enquire about past orders
or new products by visiting the showroom or contact them by phone. The sales
person at the company looks up their details to explain what is on the customer's
record or to provide a printout.
The new web-based interface they plan to build will allow each customer to login
to their own account and view their records via their customer record application.
They can also update their account with new or repeat orders.
Office Terminals
Office Printer
Customers (online)
...................................•
Financials
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
External Application
Page 7 of 10
a) For this proposed new system, describe the software system functional
components, as shown in the above diagram, that are used for calculating
the Functional Point Analysis? (4 marks)
b) From the above, calculate the Crude Functional Point Analysis (CFPA).
Show your workings for each component and how the figures were
derived (for this example, you can assume a simple level of complexity
where all components having a weight factor of3 except for external
components that have weight of 5). (6 marks)
Page 8 of 10
Section C
16) (28 marks)
IF A= 10 THEN
IFB>CTHEN
A=B
ELSE
A=C
ENDIF
ENDIF
Print A
Print B
Print C.
(3 marks)
b)
i) Explain the difference between quality control and quality assurance. Give
an example of each. (3 marks)
ii) Identify and briefly explain FOUR activities, apart from testing, that could
be used to ensure the quality of the intermediate and deliverable products of a
software development project. (2 marks)
class thermostaticHeaterSystem {
};
Page 9 of 10
c) Provide a redesigned thermostaticHeaterSystem class that uses more
appropriate access modifiers.
(2 marks)
f) Write a body for the evaluateStateO method that enables it to switch the
heater on and off (by updating the heaterState instance variable, where
appropriate) by comparing the current value oftemperatureLimit with the
current temperature, as returned by getCurrentTempO method.
(5 marks)
THE END
Page 10 of 10