cs504 collection of old papers
TRANSCRIPT
-
8/8/2019 Cs504 Collection of Old Papers
1/41
WWW.vujannat.ning.COMConnecting VU Students
FINAL EXAMINATION
SEMESTER FALL 2004
CS504-Software Engineering
Total Marks:60
Duration:120mins
StudentID/LoginID
Name
PVC Name/Code
Date 17 Feb, 2005
Maximum Time Allowed: (2 Hour)
Please read the following instructions carefully before attempting any of thequestions:
1. Attempt all questions. Marks are written adjacent to each question.
2. Do not copy and paste from handouts. If any thing found copy from handouts, no
mark would be awarded for it.
3. Do not ask any questions about the contents of this examination from anyone.
a. If you think that there is something wrong with any of the questions, attempt itto the best of your understanding.
b. If you believe that some essential piece of information is missing, make anappropriate assumption and use it to solve the problem.
c. Write all steps, missing steps may lead to deduction of marks.
**WARNING: Please note that Virtual University takes serious note of unfairmeans. Anyone found involved in cheating will get an `F` grade in this course.
For Teachers use only
Question Q1 Q2 Q3 Q4 Q5 Q6 Total
Marks
-
8/8/2019 Cs504 Collection of Old Papers
2/41
-
8/8/2019 Cs504 Collection of Old Papers
3/41
Question No: 1 Marks: 1
What are Design Patterns? Explain them briefly.
Question No: 2 Marks: 1
i- Consider the following Code Segment: (10)
Input: sequence of numbers, size, number
Variable: count=0Do while (end of sequence)If (sequence[i] == prime Number)
Count = count++Else
Count = count toEND IF
END DOIf (count == size)
sequence of number is a prime number sequenceif (count is odd)
a finalMax(sequence)y a X number
elsea finalMin(sequence)y a X number
display yelse
sequence of number is not a prime number sequenceEND IF
END PROGRAM
Draw the Flow Graph for the Code Segment. Find Cyclomatic Complexity of the Flow Graph.
(HINT: for the above code segment, ignore any syntax or grammatical errors.)
ii- what is Black Box and White Box Testing. Describe briefly. (5)
Question No: 3 Marks: 1
Following is the prototype of a function to find the index of the minimum value in an array.
int min(int array[ ], int arraySize);
(a) Identify equivalence partitions to devise black-box test cases for this function. (5 Pts)(b) Write test cases against each partition identified in part (a). (5 Pts)
Question No: 4 Marks:
What are Boolean Bugs? Describe briefly.What are symptoms of Boolean Bugs?
Question No: 5 Marks: 1
What is Software Architecture? What is its importance? Describe briefly.
-
8/8/2019 Cs504 Collection of Old Papers
4/41
Question No: 6 Marks:
Give brief answers to the following:
1. How do Software characteristics differ from Hardware characteristics? (3 Pts)2. Write a short note on Data Flow or Pipes and Filter Architecture Configuration.(3 Pts)3. How do you differentiate between the responsibilities of Developer and Tester? (3 Pts)
-
8/8/2019 Cs504 Collection of Old Papers
5/41
WWW.vujannat.ning.comhttp:/ /vujannat.ning.com
Largest Online Community of VU StudentsFINALTERM EXAMINATION
FALL 2006
CS504 - SOFTWARE ENGINEERING I
Marks: 85
Time: 120min
StudentID/LoginID: ______________________________
Student Name: ______________________________
Center Name/Code: ______________________________
Exam Date:
Please read the following instructions carefully before attempting any of thequestions:
1. Attempt all questions. Marks are written adjacent to each question.
2. Do not ask any questions about the contents of this examination fromanyone.
a. If you think that there is something wrong with any of thequestions, attempt it to the best of your understanding.
b. If you believe that some essential piece of information is missing,make an appropriate assumption and use it to solve the problem.
c. Write all steps, missing steps may lead to deduction of marks.
**WARNING: Please note that Virtual University takes serious note of unfairmeans. Anyone found involved in cheating will get an `F` grade in this course.
For Teacher's use onlyQuestion 1 2 3 4 5 6 7 8 9 10 Total
Marks
Question 11 12 13 14 15Marks
QuestionMarks
Question No: 1 ( Marks: 1 ) - Please choose one
The linear sequential model of software development is also known as the
-
8/8/2019 Cs504 Collection of Old Papers
6/41
Classical life cycle model
Fountain model
Spiral model
Chaos model
Question No: 2 ( Marks: 1 ) - Please choose one
Activity Diagram give a pictorial description of
Use case
Objects
State of system
Actors
Question No: 3 ( Marks: 1 ) - Please choose one
Public metrics are used
to make strategic changes to the software process.
to make tactical changes during a software project.
to evaluate the performance of software development teams.
to make strategic and tactical changes to the software process
Question No: 4 ( Marks: 1 ) - Please choose one
-
8/8/2019 Cs504 Collection of Old Papers
7/41
The cyclomatic complexity metric provides the designer with information regarding thenumber of
Cycles in the program
Errors in the program
Independent logic paths in the program
Statements in the program
Question No: 5 ( Marks: 1 ) - Please choose one
The object-behavior model indicates how the system
functions in the operating environment
objects collaborate with one another
responds to external stimuli
responds to internal stimuli
Question No: 6 ( Marks: 1 ) - Please choose one
Class responsibilities are defined by
its attributes only
its collaborators
its operations only
both its attributes and operations
-
8/8/2019 Cs504 Collection of Old Papers
8/41
Question No: 7 ( Marks: 1 ) - Please choose one
Software risk always involves two characteristics
fire fighting and crisis management
known and unknown risks
uncertainty and loss
staffing and budget
Question No: 8 ( Marks: 1 ) - Please choose one
The testing technique that requires devising test cases to exercise the internal logic of asoftware module is called
behavioral testing
black-box testing
grey-box testing
white-box testing
Question No: 9 ( Marks: 1 ) - Please choose one
The four layers defined for object-oriented design are the same as design layers used forconventional software design.
True
False
-
8/8/2019 Cs504 Collection of Old Papers
9/41
Question No: 10 ( Marks: 1 ) - Please choose one
Graph-based testing methods can only be used for object-oriented systems
True
False
Question No: 11 ( Marks: 15 )
Following is the prototype of a function to find the cube root of a number.
double function(int a);
a) Identify equivalence partitions to devise black-box test cases for this function.b) Write test cases against each partition identified in part (a).
Question No: 12 ( Marks: 15 )
Following are given Symptoms of different Bugs. Identify them:
1.
System slowdowns Crashes that occur "randomly" over a long period of time
2
Results are the opposite of what is expected. Output looks strange, but has no obvious symptoms of corruption
3.
Unexpected errors in black box testing. The errors that unexpectedly occur are usually caused by coding errors.
Question No: 13 ( Marks: 15 )
Draw a Business Process Diagram according to the following Processes:
-
8/8/2019 Cs504 Collection of Old Papers
10/41
1. A patient may come to visit In Patient Department (IPD) or output patientdepartment (OPD)
2. System determines if he is a company patient or a private patient.3. For a company patient, system verifies him.4. For an OPD patient, system will issue a chit to the patient and inform him about his
number and the consultant to whom he has to consult and he will have to wait forhis turn.
5. After verifying an IPD patient, system will create a visit and allocate him a room ora bed etc. If system cannot allocate this, then it will inform the patient. Otherwisethe patient is checked in and his information is maintained in the system.
6. System displays information about the expenses of the required service to thepatient so that he is informed of his expected expenditure.
7. Some advance payment is also received against the required service and thisamount is adjusted in the final settlement.
8. All this information is supplied to cash office that eventually deals with payments,etc.
9. Upon receiving the cash, for OPD patient, a chit will be issued. For IPD patient, anadmission form will be filled and this information will be maintained in the system.A receipt will be issued to the patient.
10.For credit transaction, corresponding voucher will be prepared.11.So the model depicts process before the start of the treatment.12.A patient may ask to change his service on event of an unsatisfied response from the
hospital staff or any other reason. System may cancel his record and pay his amountback.
13.Similarly, a doctor may ask a patient to change his status from OPD to IPD.
Question No: 14 ( Marks: 20 )
Consider the following code:
sorted = false;
while (!sorted) { //1
sorted = true;
for (i=0; i < N-1; i++) { //2if a[i] > a[i+1] {
swap(a[i], a[i+1]); //3
sorted = false;} //4
} //5} //6
a) Draw the flow graph for this code segment. [10]b) Calculate the cyclomatic complexity for this code [5]c) Identify one infeasible path if any. [5]
-
8/8/2019 Cs504 Collection of Old Papers
11/41
Question No: 15 ( Marks: 10 )
Write Some of the key advantages which make the object-oriented technology significantlyattractive than other technologies? Discuss the difference between Object oriented andFunction Oriented approach also elaborate the difference using diagram.
-
8/8/2019 Cs504 Collection of Old Papers
12/41
type = 0;else}
type = 3;if (((a==b) && (a !=c)) || ((a==c) && (a!=b)) || ((b==c) && (a!=c)))if ((a!=b) && (a != c) && (b != c)) type = 2;if ((a==b) && (a==c)) type = 1;
if ((a+b > c) && (a+b > b) && (b+c > a)) {
Consider the following code:
Question No. 2 Marks : 15
What are Loop Errors? Describe briefly. What are symptoms of Loop Errors?
Question No. 1 Marks : 6
Total Marks: 60 Total
Questions: 6
4. You are allowed to use any tool that helps in drawing Diagrams like Microsoft Word, Paintetc.
b. If you believe that some essential piece of information is missing, make anappropriate assumption and use it to solve the problem.
a. If you think that there is something wrong with any of the questions, attempt it to thebest of your understanding.
3. Do not ask any questions about the contents of this examination from anyone.
2. This examination is closed book, closed neighbors; any one found cheating will get nograde.
1. You have to attempt all Questions.Please read the following instructions carefully before attempting any question:
Instructions
Time Allow ed: 150 Minutes
Final Term Examination - February 2005CS504 Software Engineering - I
www.vujannat.ning.com
-
8/8/2019 Cs504 Collection of Old Papers
13/41
Write a short note on Observer Pattern.
Question No. 6 Marks : 10
(b) Write test cases against each partition identified in part (a). (5 Pts)
(a) Identify equivalence partitions to devise black-box test cases for this function. (5 Pts)
int serach(int array[ ], int arraySize, int key);
Following is the prototype of a function to find the index of the key value in an array. It returns-1 if the key is not found.
Question No. 5 Marks : 10
Write a short note on Repository Model Architectural Configuration.
Question No. 4 Marks : 10
3. What are the attributes of a good Software Test? (3 Pts)2. Describe the general process of creating a Data Flow Diagram (DFD). (3 Pts)1. How do Software characteristics differ from Hardware characteristics? (3 Pts)
Give brief answers to the following:
Question No. 3 Marks : 9
(e) Write white-box test cases for all the feasible paths (5 Pts)(d) Identify all feasible paths. (2 Pts)(c) Identify one infeasible path if any. (1 Pts)(b) Calculate the Cyclomatic Complexity for this code. (2 Pts)(a) Draw the flow graph for this code segment. (5 Pts)
-
8/8/2019 Cs504 Collection of Old Papers
14/41
Page 1 of 1WWW.vujannat.ning.com
http:/ /vujannat.ning.com
Largest Online Community of VU StudentsCS504 Software Engineering I
Final Term Examination - August 2004Time Allowed: 150 Minutes
InstructionsPlease read the following instructions carefully before attempting any question:
1. The duration of this examination is 150 Mins.2. You have to attempt all Questions.3. This examination is closed book, closed neighbors; any one found cheating will get no grade.
4. Do not ask any questions about the contents of this examination from anyone.a. If you think that there is something wrong with any of the questions, attempt it to the
best of your understanding.b. If you believe that some essential piece of information is missing, make an
appropriate assumption and use it to solve the problem.5. You are allowed to use any tool that helps in drawing UML Diagrams like Microsoft Word,
Visio etc.
Total Marks: 60 Total Questions: 6
Question No. 1 Marks : 10
Write a short note on Faade pattern.
Question No. 2 Marks : 9
Give brief answers to the following:1. How does software differ from the artifacts produced by other engineering disciplines? (3 Pts)2. What is meant by the term software reliability? (3 Pts)3. Describe the principle of information hiding as it applies to software design. (3 Pts)
Question No. 3 Marks : 6
What are the symptoms of pointer errors?
Question No. 4 Marks : 15
Consider the following code:
if ((a >= b) && (a >= c)) max = a;if ((b >= a) && (b >= c)) max = b;if ((c >= a) && (c >= b)) max = c;
-
8/8/2019 Cs504 Collection of Old Papers
15/41
Question No. 2 Marks : 05
What is meant by Maintainable Code? Describe it briefly. [10 marks]
Question No. 1 Marks : 10
Total Marks: 60 Total Questions: 11
**WARNING: Please note that Virtual University takes seriousnote of unfair means. Anyone found involved in cheating willget an `F` grade in this course.
c
. Write all steps, missing steps may lead to deduction ofmarks.
b. If you believe that some essential piece of information ismissing, make an appropriate assumption and use it tosolve the problem.
a. If you think that there is something wrong with any ofthe questions, attempt it to the best of your understanding.
2. Do not ask any questions about the contents of thisexamination from anyone.
1. Attempt all questions. Marks are written adjacent to eachquestion.
Please read the following instructions carefully beforeattempting any of the questions:
Time Allow ed: 150 Minutes
Final Term Examination Spring 2005
CS504 Software Engineering I
www.vujannat.ning.com
-
8/8/2019 Cs504 Collection of Old Papers
16/41
o Quality plan
Which of the following documents should be prepared before the commencement of
a software project? [2 marks]
Question No. 7 Marks : 02
o Gamma Testingo Beta Testingo Alpha testingo Subsystem testing
Which of the followings is not a testing type? [2 marks]
Question No. 6 Marks : 02
(b) Write test cases against each partition identified in part (a).
[5 marks]
(a) Identify equivalence partitions to devise black-box test cases for this
function. [10 marks]
double sqrt (int num);
Following is the prototype of a function to find the square root of a number.
Question No. 5 Marks : 15
What are the symptoms of Boolean Bugs? [5 marks]
Question No. 4 Marks : 05
Excludeo
o Uses
o Includeo Extends
Which of the followings can not be used to relate use cases with each other? [2marks]
Question No. 3 Marks : 02
Explain how effective modular design is achieved through functional independence
of the individual modules?[5 marks]
-
8/8/2019 Cs504 Collection of Old Papers
17/41
Which of the followings is design tool? [2 marks]
Question No. 11 Marks : 10
"A bank account is either, a current account, a deposit account, or a mortgage account.
All bank accounts can be opened and closed and all bank accounts have a balance.
Deposit accounts pay interest. For current accounts it is possible to set up an overdraft
facility. All mortgage accounts have a 'term' (the number of years the mortgage runs). A
bank customer (who is characterized by name and address) can have one or more
accounts."
(Note: Use the UML Object Model Notation)
Draw the corresponding object model diagram for the following system description.[10 marks]
Question No. 10 Marks : 10
o Data Flow Diagram
State Transition Diagramo
o Flow Chart
o Collaboration Diagram
Which of the followings is design tool? [2 marks]
Question No. 9 Marks : 02
o Personal resources requirementso Software tools requirementso Performance requirementso Functional requirements
During the requirement analysis stage, which of the following requirements should
be identified? [2 marks]
Question No. 8 Marks : 02
Validation (Test) Plano
o Software requirement specification
o Design specification
-
8/8/2019 Cs504 Collection of Old Papers
18/41
WWW.vujannat.ning
.ComConnecting VU Students
b) A client wants to build Simulation Software, which is used to show customer the
preview of interior decoration of rooms. The software presents rooms as objectand it can interact with other objects. These objects, like Television, Sofa etc, can
change their state. The client has determined that there can be limited number of
operations that can be performed on the objects, e.g. a TV can be placed at either
of the walls of the rooms etc. The interaction between the objects should be low.
a) There are two objects, A and B. Both of them are interacting with each otherin such a way that the state of the object B depends on the state of the object
A and it is the responsibility of B to synchronize its state whenever Achanges.
For each of the following cases, identify which Design Pattern should be used and why?
Discuss briefly.
Q 2)(
Pts)
b) Write test cases against each partition identified in part (a). (5Pts)
a) Identify equivalence partitions to devise black-box test cases for this function. (10
ouble sqrt (int num);d
F
ollowing is the prototype of a function to find the square root of a number.
Q 1)(
CS504_final_spring2006
-
8/8/2019 Cs504 Collection of Old Papers
19/41
b) The program doesn't crash, but the flow of the program takes odd branchesthrough the code.
a) System slowdowns.
Following is the list of bugs symptoms; identify the bug classes in each case.
(Q 9)
What are the differences between Thin Client and Fat Client architecture?
(Q 8)
List the problems we risk facing if software engineering principles are not applied tosoftware development.
(Q 7)
Explain why encapsulation, inheritance, and polymorphism are three important
characteristics of object-oriented systems.
(Q 6)
What is the importance of Self Documented Code in Software Engineering?
(Q 5)
definition & example of Equivalence Partitions
(Q 4)
An online banking system allows customers to manage their account. Each account has
a balance. Customers can deposit to or withdraw from their account. Each deposit or
withdrawal is called a transaction. A transaction always has a value and a date. At any
time a customer can see a statement, which is a listing of each transaction.
(Note: Use the UML Object Model Notation)Draw the corresponding object model diagram for the following system description.
(Q 3)
-
8/8/2019 Cs504 Collection of Old Papers
20/41
Which of the items listed below is not one of the software engineering layers?
(Q 13) (Marks: 2)
Solution integration Technical development Problem definition Status quo
In which software development problem solving stage are the results delivered?
(Q 12) (Marks: 2)
Statements in the program. Independent logic paths in the program. Errors in the program. Cycles in the program.
The cyclomtic complexity metric provides the designer with information regardingthe number of
(Q 11) (Marks: 2)
The test cases for a software product. To build plan for a software product. How CASE tool will be used to construct the system. How software is to be used in a given situation.
Use-Cases are scenarios that describe
(Q 10) (Marks: 2)
Not cost effective by known quantifiable software metrics. Dependent on object technologies for support. Not able to support the development of reusable components. Only appropriate for computer hardware design.
The component-based development model is
(Q 9) (Marks: 2)
c) If your program simply locks up, repeatedly displays the same data over and over,or infinitely displays the same message box.
-
8/8/2019 Cs504 Collection of Old Papers
21/41
Tools Methods Manufacturing Process
-
8/8/2019 Cs504 Collection of Old Papers
22/41
c. Draw a use case block diagram, to illustrate the above-described sequence of eventsin detail (i.e. the motor was started, run, it overheated, stopped, cooled, and againstarted and run) (5 Marks)
b. Draw the message sequence diagram for the above system (10 Marks)a. Draw a state transition diagram for the system (10 marks)
A food processor has the following motor control. It has a switch that is either in the Onposition, or Off position. When the motor is stationary and the switch is turned on, then poweris applied to a starting coil, and the motor starts. After the motor starts, the power is appliedto the running coil, and the motor continues to run. The motor has a heat sensor. If the motorbecomes too hot due to overload, then the power to the motor is cut off, and the motor stops.When the motor has cooled down, and it is stationary, power is again applied first to the
starting coil, and ten to the running coil, when it is in motion.
Question No. 1 Marks : 25
Total Marks: 60 TotalQuestions: 3
4. You are allowed to use any tool that helps in drawing Diagrams like Microsoft Word, Paintetc.
b. If you believe that some essential piece of information is missing, make anappropriate assumption and use it to solve the problem.
a. If you think that there is something wrong with any of the questions, attempt it to thebest of your understanding.
3. Do not ask any questions about the contents of this examination from anyone.
2. This examination is closed book, closed neighbors; any one found cheating will get nograde.
1. You have to attempt all Questions.Please read the following instructions carefully before attempting any question:
Instructions
Time Allow ed: 90 Minutes
Mid Term Examination - November 2004CS504 Software Engineering - I
www.vujannat.ning.com
-
8/8/2019 Cs504 Collection of Old Papers
23/41
c. A file is an ordinary file or a directory (5marks)
b. A dining philosopher is using a fork (5 marks)a. A country has a capital (5 marks)
Determine which of the following relationships are inheritance, association or aggregation. Beaware that there may be 3-way or N-way associations so do not assume that any N-wayrelationship is inheritance. Also draw the object model in each case.
Question No. 3 Marks : 25
Briefly describe "Software Engineering Framework". Do provide examples and diagramswhere necessary.
Question No. 2 Marks : 10
-
8/8/2019 Cs504 Collection of Old Papers
24/41
WWW.vujannat.ning.comhttp:/ /vujannat.ning.comLargest Online Community of VU Students
MIDTERM EXAMINATION
FALL 2006
CS504 - SOFTWARE ENGINEERING I
Marks: 35
Time: 60min
StudentID/LoginID: ______________________________
Student Name: ______________________________
Center Name/Code: ______________________________
Exam Date:
Please read the following instructions carefully before attempting any of thequestions:
1. Attempt all questions. Marks are written adjacent to each question.
2. Do not ask any questions about the contents of this examination fromanyone.
a. If you think that there is something wrong with any of thequestions, attempt it to the best of your understanding.
b. If you believe that some essential piece of information is missing,
make an appropriate assumption and use it to solve the problem.
c. Write all steps, missing steps may lead to deduction of marks.
**WARNING: Please note that Virtual University takes serious note of unfair means.Anyone found involved in cheating will get an `F` grade in this course.
For Teacher's use onlyQuestion 1 2 3 4 5 6 7 8 Total
Marks
Question No: 1 ( Marks: 1 ) - Please choose one
Both the software engineer and customer take an active role in software requirements
http://www.vupages.com/http://www.vupages.com/http://www.vupages.com/http://forum.vupages.com/http://forum.vupages.com/http://forum.vupages.com/http://forum.vupages.com/http://www.vupages.com/ -
8/8/2019 Cs504 Collection of Old Papers
25/41
engineering-a set of activities that is often referred to as Requirement_______________
Managing
Recognition
Analysis
Modeling
Question No: 2 ( Marks: 1 ) - Please choose one
_________ is a measure of independence of a module or component.
Cohesion
Coupling
Loop coupling
Loop cohesion
Question No: 3 ( Marks: 1 ) - Please choose one
In the Functional design, the structure of the system revolves around __________
Functions
Sequences
Models
Flows
Question No: 4 ( Marks: 1 ) - Please choose one
Use case is the part of designing phase of software engineering
True
False
Question No: 5 ( Marks: 1 ) - Please choose one
Three categories of risks are
business risks, personnel risks, budget risks
project risks, technical risks, business risks
-
8/8/2019 Cs504 Collection of Old Papers
26/41
planning risks, technical risks, personnel risks
management risks, technical risks, design risks
Question No: 6 ( Marks: 15 )
Consider the following Scenario :A juicer blender has the following motor control. It has a switch that is either in the Onposition, or Off position. When the motor is stationary and the switch is turned on, thenpower is applied to a starting coil, and the motor starts. After the motor starts, the power isapplied to the running coil, and the motor continues to run. The motor has a heat sensor. Ifthe motor becomes too hot due to overload, then the power to the motor is cut off, and themotor stops. When the motor has cooled down, and it is stationary, power is again appliedfirst to the starting coil, and ten to the running coil, when it is in motion.
a) Draw a state transition diagram for the systemb) Draw the message sequence diagram for the above systemc) Draw a use case block diagram, to illustrate the above-described sequence of events in
detail (i.e. the motor was started, run, it overheated, stopped, cooled, and again started andrun
Question No: 7 ( Marks: 10 )
The Process of Software Development involves construction and Management. Discuss eachcategory in detail and draw diagram to show their relationship.
Question No: 8 ( Marks: 5 )
Briefly explain the key points (including benefits/drawbacks) about the Water Fall life-cyclemodel.
-
8/8/2019 Cs504 Collection of Old Papers
27/41
WWW.vujannat.ning.COMConnecting VU Students
MIDTERM EXAMINATION
FALL 2007
CS504 - SOFTWARE ENGINEERING I (Session - 7 )
Marks: 40
Time: 120min
StudentID/LoginID: ______________________________
Student Name: ______________________________
Center Name/Code: ______________________________
Exam Date: Thursday, November 22, 2007
Please read the following instructions carefully before attempting any of thequestions:
1. Attempt all questions. Marks are written adjacent to each question.
2. Do not ask any questions about the contents of this examination fromanyone.
a. If you think that there is something wrong with any of the questions,
attempt it to the best of your understanding.
b. If you believe that some essential piece of information is missing, make
an appropriate assumption and use it to solve the problem.
c. Write all steps, missing steps may lead to deduction of marks.
3. The use of Mobile phone is forbidden during the paper.
**WARNING: Please note that Virtual University takes serious note of unfair means.Anyone found involved in cheating will get an `F` grade in this course
For Teacher's use onlyQuestion 1 2 3 4 5 6 7 Total
Marks
Question No: 1 ( Marks: 2 ) - Please choose one
Business model is the part of designing phase of software engineering development life cycle
True
-
8/8/2019 Cs504 Collection of Old Papers
28/41
False
Question No: 2 ( Marks: 2 ) - Please choose one
The state transition diagram
depicts relationships between data objects
depicts functions that transform the data flow
indicates how data are transformed by the system
indicates system reactions to external events
Question No: 3 ( Marks: 2 ) - Please choose one
The best way to conduct a requirements validation review is to
Examine the system
Have the customer look over the requirements
Send them to the design team
Use checklist to examine the questions
Question No: 4 ( Marks: 2 ) - Please choose one
The system specification describes the
Function, performance and constraints of a computer-based system
implementation of each allocated system
-
8/8/2019 Cs504 Collection of Old Papers
29/41
time required for simulation
element software architecture
Question No: 5 ( Marks: 12 )
List three necessary and one desired property of requirements: [4 Marks]For each of the following given Requirement indicate whether it is Functional (F) or Non-Functional (N) Requirement. [2 marks each]
1. The System should be designed so it can later be extended to a Blue Linereservation System.
2. The System will allow the user to view the layout of seats in Bus.3. The System must be available at all times.4. A given seat can be assigned to only one person.
Question No: 6 ( Marks: 10 )
Requirement engineering mainly deals with the definition phase of the system. Discuss theimportance of Requirement Engineering.
Question No: 7 ( Marks: 10 )
Identify appropriate classes and methods for the following requirements specification,and draw the resulting class diagram:
Customers order a number of items from a shop. The purpose of this system is to produce aprinted invoice for the customers orders. Each invoice should contain a full list of itemsordered together with their price. Customers might order more than one of a particular itemso the invoice should show the number of each item ordered rather than list them multipletimes. The invoiceshould display the cost of each item and the total amount payable. The invoice should alsoprint the customers name and address.
-
8/8/2019 Cs504 Collection of Old Papers
30/41
WWW.vujannat.ning.COMConnecting VU Students
MID TERM EXAMINATION
SEMESTER FALL 2004
CS504-SOFTWARE ENGINEERING
Total Marks: 60
Duration: 60 Mins
Instructions
Please read the following instructions carefully before attempting any question:
1. You have to attempt all Questions.
2. This examination is closed book, closed neighbors; any one found cheating will get no grade.
3. Do not ask any questions about the contents of this examination from anyone.
a. If you think that there is something wrong with any of the questions, attempt it to the best of youunderstanding.
b. If you believe that some essential piece of information is missing, make an appropriate assumptioand use it to solve the problem.
4. You are allowed to use any tool that helps in drawing Diagrams like Microsoft Word, Paint etc.
-
8/8/2019 Cs504 Collection of Old Papers
31/41
Question No: 1 Marks: 2
Determine which of the following relationships are inheritance, association or aggregation. Be aware that
there may be 3-way or N-way associations so do not assume that any N-way relationship is inheritance.
Also draw the object model in each case.
a. A person uses a computer language on a project (5 marks)b. Modems and keyboards are input/output devices (5 marks)c. Object classes may have several attributes (5 marks)
Question No: 2 Marks: 1
Briefly describe Software Engineering Phases. Do provide examples and diagrams where necessary.
Question No: 3 Marks: 2
A food processor has the following motor control. It has a switch that is either in the On position, or Of
position. When the motor is stationary and the switch is turned on, then power is applied to a starting coil
and the motor starts. After the motor starts, the power is applied to the running coil, and the moto
continues to run. The motor has a heat sensor. If the motor becomes too hot due to overload, then th
power to the motor is cut off, and the motor stops. When the motor has cooled down, and it is stationary
power is again applied first to the starting coil, and ten to the running coil, when it is in motion.
a. Draw a use case block diagram, to illustrate the above-described sequence of events in detail (i.ethe motor was started, run, it overheated, stopped, cooled, and again started and run) (5 Marks)
b. Draw a state transition diagram for the system (10 marks)c. Draw the message sequence diagram for the above system (10 Marks)
-
8/8/2019 Cs504 Collection of Old Papers
32/41
www.vujannat.ning.com
"The system will be primarily operated by the doctors' receptionists. They will make appointmentsfor patients who contact the surgery. To make an appointment the receptionist gets the patient'sname, checks that the patient is registered and gets the next available appointment slot. Providingthis slot is acceptable to the patient the appointment is confirmed and the diary updated. Thesystem should enable receptionists to cancel appointments either in response to patients' ordoctors' requests. If a patient cancels a confirmed appointment within 24 hours, he has to pay 50Rs. cancellation charges; patients who fail to turn up for an appointment must pay 100 Rs.charges. The system must prepare invoices for customers who have to pay charges. As the
system is only to be used by receptionists or doctors it should have user friendly interface and anappropriate login procedure that will only allow authorized users to enter the system."
Consider the following requirements specification for a computerized appointments system for adoctors' surgery.
Question No. 1 Marks : 16
Total Marks: 75 Total Questions: 4
**WARNING: Please note that Virtual University takes serious note of unfairmeans. Anyone found involved in cheating will get an `F` grade in this course.
c. Write all steps, missing steps may lead to deduction of marks.
b. If you believe that some essential piece of information ismissing, make an appropriate assumption and use it to solve theproblem.
a. If you think that there is something wrong with any of thequestions, attempt it to the best of your understanding.
2. Do not ask any questions about the contents of this examinationfrom anyone.
1. Attempt all questions. Marks are written adjacent to each question.
Please read the following instructions carefully before attemptingany of the questions:
Time Allowed: 90 Minutes
Mid Term Examination Spring 2005CS504 Software Engineering I
Page 1 of
-
8/8/2019 Cs504 Collection of Old Papers
33/41
www.vujannat.ning.com
Which of the followings is not part of software Engineering phases?
Question No. 2 Marks : 2 False True
In DFD we show the flow of data in a system.
Question No. 1 Marks : 2
4. You are allowed to use any tool that helps in drawing Diagrams like Microsoft Word,Paint etc.
b. If you believe that some essential piece of information is missing, make anappropriate assumption and use it to solve the problem.
a. If you think that there is something wrong with any of the questions, attempt itto the best of your understanding.
3. Do not ask any questions about the contents of this examination from anyone.
2. This examination is closed book, closed neighbors; any one found cheating will get nograde.
1. You have to attempt all Questions.
Please read the following instructions carefully before attempting any question:
Instructions
Time Allowed: 90 MinutesMid Term Examination Spring 2006
CS504 Software Engineering
mailto:[email protected]:[email protected]:[email protected]:[email protected] -
8/8/2019 Cs504 Collection of Old Papers
34/41
Question No. 6 Marks : 5
Business or Domain model
Sequence diagram
Class diagram
Use case description
Use case diagram
Explain the purpose (using only two sentence in each case) of each of the following
components of UML
Question No. 5 Marks : 5
b. A file is a document file or an executable file.a. A wheel has a tyre.
Determine which of the following relationships is inheritance, generalization,
association or aggregation. Beware that there may be 3-way or N-way associations so do
not assume that any N-way relationship is inheritance. Also draw the object modeldiagram in each case.
Question No. 4 Marks : 2 All of these. State of system Objects Use case
Activity Diagram give a pictorial description of
Question No. 3 Marks : 5
Process Development Definition Vision
-
8/8/2019 Cs504 Collection of Old Papers
35/41
In data flow diagram an external entity can store/update data in data store directlyQuestion No. 8 Marks : 6
c) Draw the sequence diagram for the Make Appointment use case (you canassume that there are classes corresponding to GUI, Diary and
Appointment as well as a database of Patients). (7 marks)
b) Provide a narrative description for the Make Appointment use case includingpre, post conditions and the main alternatives. (12 marks)
a) Draw a use case diagram for the above system (one of your use cases should beMake Appointment) . (6 marks)
The system will be primarily operated by the doctors receptionists. They will make
appointments for patients who contact the surgery. To make an appointment the
receptionist gets the patients name, checks that the patient is registered and gets the
next available appointment slot. Providing this slot is acceptable to the patient the
appointment is confirmed and the diary updated. The system should enable
receptionists to cancel appointments either in response to patients or doctors requests.
If a patient cancels within 24 hours of a confirmed appointment they have to pay a Rs.
10 cancellation charge; patients who fail to turn up for an appointment must pay a Rs.
20 charge. The system must prepare invoices for customers who have to pay charges. As
the system is only to be used by receptionists or doctors, there will need to be an
appropriate login procedure that only allows authorized users to enter the system.
Consider the following requirements specification for a computerized appointments
system for a doctors surgery.
Question No. 7 Marks : 5 False True
Use Cases are the part of designing phase of software engineering
-
8/8/2019 Cs504 Collection of Old Papers
36/41
4. A given seat can be assigned to at most one person at any given time.
3. The system must be available at all times. Only 2 minutes of downtime is to bepermitted.
2. The system will allow the user to view the layout of seat in an aircraft.
1. The system should be designed so it can be later extended to handle a frequent-flyerplan.
What is meant by functional requirements? For each requirement given below indicate
whether it is a functional requirement (F) or a non-functional requirement (N)
Question No. 9 Marks : 6 False True
-
8/8/2019 Cs504 Collection of Old Papers
37/41
WWW.vujannat.ning.comhttp:/ /vujannat.ning.com
Largest Online Community of VU StudentsMIDTERM EXAMINATION
SPRING 2007
CS504 SOFTWARE ENGINEERING-I
Marks: 40
Time: 90min
Q1: Object models (as described for example using class diagrams) often incorporatethe following relations:
generalisation-specialisation (inheritance) whole-part (aggregation) association object is instance ofclass
Using whichever of these relations you feel is the most appropriate, draw simple
diagrams to model the ideas in each of the following sentences (you should use the
appropriate UML notation and include labels and numbers where appropriate).
i. JBuilder is a Java programii. A polygon is built from a number of points.iii. A football team consists of 11 players and 5 substitutes.iv. Mouse and keyboard are different input devices.v. A class can have multiple attributes.
Q: Software is a product and can be manufactured using the same technologies used forother engineering artifacts.(T,F)
Q: Ambiguity means _____________.
a. ambiguity means that two different readers of the same document interpret therequirement differently
b. ambiguity means that two different writers of the same document interpret therequirement differentlyc. c. ambiguity means that different readers of the different documents interpret therequirement differently
d. both b and c
http://www.vupages.com/http://www.vupages.com/http://www.vupages.com/http://forum.vupages.com/http://forum.vupages.com/http://forum.vupages.com/http://forum.vupages.com/http://www.vupages.com/ -
8/8/2019 Cs504 Collection of Old Papers
38/41
Q: Determine which of the following relationships are inheritance, association oraggregation. Be aware that there may be 3-way or N-way associations so do not assume
that any N-way relationship is inheritance. Also draw the object model in each case.
a. Car and engineb. A polygon is composed of an ordered set of pointsc. Computer and its accessories like keyboard, mouse and monitor
Q: Software engineering is often characterized as programming-in-the-large. List tenreasons why large projects present such a different challenge to programming-in-the-
small.
(You should list the ten you feel are the most important do not give more than ten asany additional ones will not be considered).
Q: The current software crisis was caused by the Y2K problem whose seeds were firstsown by careless programmers in the early 1970's. (T, F)
-
8/8/2019 Cs504 Collection of Old Papers
39/41
CS504-Software Engineering I
Midterm Special 2006
www.vujannat.ning.com
Question #1:- What makes requirements elicitation difficult?bounding scopeunderstanding user needsrequirements volatilityall of the above
Question # 2:- Which of the items listed below is not one of the software engineeringlayers?
ProcessManufacturingMethodsTools
Question # 3:- Draw a Use Case Diagram for the following steps:
A user is placing an order with a sales company might follow these steps.
1. Browse catalog and select items.2. Call sales representative.3. Supply shipping information.4. Supply payment information.
Receive conformation number from salesperson.
Solution:-This case study shows the customer as an actor because the customer is usingthe ordering system. The diagram takes the simple steps listed below and showsthem as actions or use cases the customer might perform.
-
8/8/2019 Cs504 Collection of Old Papers
40/41
Question # 4:- What are the three generic phases of software engineering?definition, development, support
what, how, whereprogramming, debugging, maintenanceanalysis, design, testing
Question # 5:- Discuss briefly the architectural attributes of software?
Solution:-Architectural Attributes of Software:-
Software architecture must address the non-functional as well as the functional
requirements of the software system. This includes performance, security, safety,availability, and maintainability. Following are some of the architectural design
procedure that can help in addressing these challenges.
Performance:-Performance can be enhanced by localising operations to minimise sub-system
communication. That is, try to have self-contained modules as much as possible
so that inter-module communication is minimized.
-
8/8/2019 Cs504 Collection of Old Papers
41/41
Security:-Security can be improved by using a layered architecture with critical assets put in
inner layers.
Safety:-Safety-critical components should be inaccessible
Availability:-Availability can be ensured by building redundancy in the system and having
redundant components in the architecture.
Maintainability:-Maintainability is directly related with simplicity. Therefore, maintainability canbe increased by using fine-grain, self-contained components.
Question # 6:- Which of these items should be used to select a software processframework?
PeopleProductProjectAll of the above
Question # 7:- The prototyping model of software development is
A reasonable approach when requirements are welldefined.
A useful approach when a customer cannot definerequirements clearly
The bestapproach to use for projects with largedevelopment teams
A riskymodel that rarely produces a meaningful product