How To Exam?

a knowledge trading engine...


Birla Institute of Technology (BIT Mesra) 2007 MS Software Engineering Software Testing Methodologies - Question Paper

Saturday, 19 January 2013 03:00Web

Birla Institute of Technology and Science, Pilani
Distance Learning Programmes Division
MS Software Engineering in Collaboration with Wipro Technologies
Mid semester exam
Regular
Course No. : SEWP ZG552
Course Name : Software Testing Methodologies
Nature of examination : Closed Book Exam Bangalore
Weightage : 40 %
Duration : two Hours No of pages : 9
Date :11th March 2007 (AN) No. of questions : 5

Important Notes:
1. Answers must be precise, and to the point.
2. presume suitable data when necessary. State the assumptions made clearly.
3. Please write the answers only in the space given after the ques. in the ques. paper itself.
4. You can use the regular ans books given for rough work. The rough shall not be graded and will not have any weightage.
5. Illustrate with diagrams and tables for clarity.
6. In the event of multiple cancellations of answers and running out of space, you can use the ans books given. Mark the answers with the ques. numbers.
7. Show the computations clearly with all steps for the issues.
8. Use of scientific calculator is allowed.

Good Luck!
-------------------------------------------------------------------------------------------------------

Name : __________________________________________

learner ID : __________________________________________






ques. # Marks Obtained Max Marks
1 8
2 8
3 8
4 8
5 8
Total 40

Q1: (8):
A salesman sells locks, stocks and barrels on a monthly basis; the salesperson reports how many of every he or she has sold.
The parts sell for the following:
Locks $45 every
Stocks $30 every
Barrels $25 every
Commission is calculated on sales:
10% on sales up to $1000; 15% on the next $800; and 20% on the amount over $1800

Source code for the problem:
Private Sub buggyCommission(locks As Integer, stocks As Integer, barrels As Integer, commission As Currency)
'PROGRAM Commission Faulty Version
Const lock_price As Currency = 45
Const stock_price As Currency = 30
Const barrel_price As Currency = 25
Dim sales As Currency
sales = lock_price * locks + stock_price * stocks + barrel_price * barrels
Node (0)
If (sales > 1800) Then
Node (1)
commission = 0.1 * 1000
commission = commission + 0.15 * 800
commission = commission + 0.2 * (sales - 1200)
ElseIf (sales > 1100) Then
Node (2)
commission = 0.1 * 1000
commission = commission + 0.15 * (sales - 1000)
Else:
Node (3)
commission = 0.1 * sales
End If
Node (4)
End Sub
For the above issue derive the following,
(3 marks) Derive equivalence classes for every of input/output, tabulate them, and clearly state the sub-domains. Use traditional input domain equivalence class(strong robust equivalence class)
(3 marks) Justify your option of sub-domains.
(2 marks) Identify the logical fault in the source code.
-----------------------------------------------------------------------------------------------------------------
(This page is intentionally left Blank)
Q2: (8) design a decision table or reason effect graph for subsequent requirement
(If you think that the requirements conflict; make suitable assumptions and state them clearly)
(Note: Ensure that the assumptions do not change the issue definition itself)
The word-processor may current portions of text in 3 various formats: plain text (p), boldface (b), italics (i). The subsequent commands may be applied to every portion of text: make text plain (P), make boldface (B), make italics (I), emphasize (E), super emphasize (SE). Commands are available to dynamically set E to mean either B or I (we denote such commands as E=B and E=I, respectively.) Similarly, SE can be dynamically set to mean either B (command SE=B) or I (command SE=I), or B and I (command SE=B+I.)
Please ensure subsequent points are covered in the decision table or reason effect graphing.
(3 marks)Finding all the reason and marking them
(3 marks)Finding all the effect and marking them to improper reason
(2 marks)Reducing the test combinations
-----------------------------------------------------------------------------------------------------------------
(This page is intentionally left Blank)





















Q3: (8) discuss at lowest four kinds of code coverage metrics that are practices in white box testing. (explanation should cover subsequent points, Aim of testing, advantages, disadvantages) (each metrics carry two marks)
(This page is intentionally left Blank)
Q4: (8) please give the formula and outcomes for subsequent computations.
(3 marks)What is the formula to obtain the number of general boundary value test cases. There are two numeric variables x and y how may test cases you will generate based on the formula.
Answer:
Formula: _____________
Value : _____________


(2 marks)What is the formula to obtain the number of combinations that will be covered in decision tree? And how many combinations, we can cover if we have two causes with three value and three reason with two values.
Answer:
Formula: _____________
Value : _____________


(3 marks)What is the formula to obtain the cyclomatic complexity of a program? What will be the cyclomatic complexity of a program which has 21 edges and 16 nodes.
Answer:
Formula: _____________
Value : _____________



Q5: (8) discuss four basic Violations of Structured Programming that affects the Cyclomatic complexity as per McCabe’s essential complexity theory.
(each violation carries two marks)
-----------------------------------------------------------------------------------------------------------------
























(This page is intentionally left Blank)


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Birla Institute of Technology (BIT Mesra) 2007 MS Software Engineering Software Testing Methodologies - Question Paper