You are on page 1of 41

WWW.vujannat.ning.

COM
Connecting VU Students
FINAL EXAMINATION
Total Marks:60
SEMESTER FALL 2004
CS504-Software Engineering 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 the
questions:
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 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 only


Question Q1 Q2 Q3 Q4 Q5 Q6 Total
Marks
Question No: 1 Marks: 10

What are Design Patterns? Explain them briefly.

Question No: 2 Marks: 15


i- Consider the following Code Segment: (10)

Input: sequence of numbers, size, number


Variable: count=0
Do while (end of sequence)
If (sequence[i] == prime Number)
Count = count++
Else
Count = count to
END IF
END DO
If (count == size)
“sequence of number is a prime number sequence”
if (count is odd)
aÅ finalMax(sequence)
yÅ a X number
else
aÅ finalMin(sequence)
yÅ a X number
display y
else
“sequence of number is not a prime number sequence”
END 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: 10

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: 6

What are Boolean Bugs? Describe briefly.What are symptoms of Boolean Bugs?

Question No: 5 Marks: 10

What is Software Architecture? What is its importance? Describe briefly.


Question No: 6 Marks: 9

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)
WWW.vujannat.ning.com
http://vujannat.ning.com
Largest Online Community of VU Students
FINALTERM EXAMINATION
FALL 2006 Marks: 85
CS504 - SOFTWARE ENGINEERING – I Time: 120min

StudentID/LoginID: ______________________________

Student Name: ______________________________

Center Name/Code: ______________________________

Exam Date:

Please read the following instructions carefully before attempting any of the
questions:
1. Attempt all questions. Marks are written adjacent to each question.
2. 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.
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 only


Question 1 2 3 4 5 6 7 8 9 10 Total
Marks
Question 11 12 13 14 15
Marks
Question
Marks

Question No: 1 ( Marks: 1 ) - Please choose one

The linear sequential model of software development is also known as the



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


The cyclomatic complexity metric provides the designer with information regarding the
number 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


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 a
software 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 for
conventional software design.


True

► False
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

• 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:


1. A patient may come to visit In Patient Department (IPD) or output patient
department (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 for
his turn.
5. After verifying an IPD patient, system will create a visit and allocate him a room or
a bed etc. If system cannot allocate this, then it will inform the patient. Otherwise
the patient is checked in and his information is maintained in the system.
6. System displays information about the expenses of the required service to the
patient so that he is informed of his expected expenditure.
7. Some advance payment is also received against the required service and this
amount 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, an
admission 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 amount
back.
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++) { //2
if 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]
Question No: 15 ( Marks: 10 )

Write Some of the key advantages which make the object-oriented technology significantly
attractive than other technologies? Discuss the difference between Object oriented and
Function Oriented approach also elaborate the difference using diagram.
www.vujannat.ning.com

CS504 Software Engineering - I


Final Term Examination - February 2005
Time Allowed: 150 Minutes

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 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.
4. You are allowed to use any tool that helps in drawing Diagrams like Microsoft Word, Paint
etc.

Total Marks: 60 Total


Questions: 6

Question No. 1 Marks : 6

What are Loop Errors? Describe briefly. What are symptoms of Loop Errors?

Question No. 2 Marks : 15

Consider the following code:

if ((a+b > c) && (a+b > b) && (b+c > a)) {


if ((a==b) && (a==c)) type = 1;
if ((a!=b) && (a != c) && (b != c)) type = 2;
if (((a==b) && (a !=c)) || ((a==c) && (a!=b)) || ((b==c) && (a!=c)))
type = 3;
}
else
type = 0;
(a) Draw the flow graph for this code segment. (5 Pts)
(b) Calculate the Cyclomatic Complexity for this code. (2 Pts)
(c) Identify one infeasible path if any. (1 Pts)
(d) Identify all feasible paths. (2 Pts)
(e) Write white-box test cases for all the feasible paths (5 Pts)

Question No. 3 Marks : 9

Give brief answers to the following:

1. How do Software characteristics differ from Hardware characteristics? (3 Pts)


2. Describe the general process of creating a Data Flow Diagram (DFD). (3 Pts)
3. What are the attributes of a good Software Test? (3 Pts)

Question No. 4 Marks : 10

Write a short note on Repository Model Architectural Configuration.

Question No. 5 Marks : 10

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.

int serach(int array[ ], int arraySize, int key);

(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. 6 Marks : 10

Write a short note on Observer Pattern.


Page 1 of 1
WWW.vujannat.ning.com
http://vujannat.ning.com
Largest Online Community of VU Students

CS504 Software Engineering – I


Final Term Examination - August 2004
Time Allowed: 150 Minutes

Instructions
Please 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 Façade 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;

(a) Draw the flow graph for this code segment. (5 Pts)
(b) Calculate the cyclomatic complexity for this code (2 Pts)
(c) Identify one infeasible path if any. (1 Pts)
(d) Identify all feasible paths (2 Pts)
(e) Write white-box test cases for all the feasible paths (5 Pts)

Question No. 5 Marks : 10

Write a short note on zero-install client-server configuration.

Question No. 6 Marks : 10

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)
www.vujannat.ning.com

CS504 Software Engineering I


Final Term Examination – Spring 2005
Time Allowed: 150 Minutes

Please read the following instructions carefully before


attempting any of the questions:
1. Attempt all questions. Marks are written adjacent to each
question.
2. 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.
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.

Total Marks: 60 Total Questions: 11

Question No. 1 Marks : 10

What is meant by Maintainable Code? Describe it briefly. [10 marks]

Question No. 2 Marks : 05


Explain how effective modular design is achieved through functional independence
of the individual modules?
[5 marks]

Question No. 3 Marks : 02

Which of the followings can not be used to relate use cases with each other? [2
marks]

o Extends
o Include
o Exclude
o Uses

Question No. 4 Marks : 05

What are the symptoms of Boolean Bugs? [5 marks]

Question No. 5 Marks : 15

Following is the prototype of a function to find the square root of a number.

double sqrt (int num);

(a) Identify equivalence partitions to devise black-box test cases for this
function. [10 marks]
(b) Write test cases against each partition identified in part (a).
[5 marks]

Question No. 6 Marks : 02

Which of the followings is not a testing type? [2 marks]

o Subsystem testing
o Alpha testing
o Beta Testing
o Gamma Testing

Question No. 7 Marks : 02

Which of the following documents should be prepared before the commencement of


a software project? [2 marks]
o Quality plan
o Design specification
o Validation (Test) Plan
o Software requirement specification

Question No. 8 Marks : 02

During the requirement analysis stage, which of the following requirements should
be identified? [2 marks]

o Functional requirements
o Performance requirements
o Software tools requirements
o Personal resources requirements

Question No. 9 Marks : 02

Which of the followings is design tool? [2 marks]

o Collaboration Diagram
o State Transition Diagram
o Flow Chart
o Data Flow Diagram

Question No. 10 Marks : 10

Draw the corresponding object model diagram for the following system description.
[10 marks]
(Note: Use the UML Object Model Notation)

"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."

Question No. 11 Marks : 10

Which of the followings is design tool? [2 marks]


WWW.vujannat.ning.Com
Connecting VU Students

CS504_final_spring2006
(Q 1)

Following is the prototype of a function to find the square root of a number.

double sqrt (int num);

a) Identify equivalence partitions to devise black-box test cases for this function. (10
Pts)
b) Write test cases against each partition identified in part (a). (5
Pts)

(Q 2)

For each of the following cases, identify which Design Pattern should be used and why?
Discuss briefly.

a) There are two objects, “A” and “B”. Both of them are interacting with each other
in 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 “A”
changes.

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 object
and 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.
(Q 3)

Draw the corresponding object model diagram for the following system description.
(Note: Use the UML Object Model Notation)

“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.”

(Q 4)

definition & example of Equivalence Partitions

(Q 5)

What is the importance of Self Documented Code in Software Engineering?

(Q 6)

Explain why encapsulation, inheritance, and polymorphism are three important


characteristics of object-oriented systems.

(Q 7)

List the problems we risk facing if software engineering principles are not applied to
software development.

(Q 8)

What are the differences between Thin Client and Fat Client architecture?

(Q 9)

Following is the list of bugs’ symptoms; identify the bug classes in each case.

a) System slowdowns.
b) The program doesn't crash, but the flow of the program takes odd branches
through the code.
c) If your program simply locks up, repeatedly displays the same data over and over,
or infinitely displays the same message box.

(Q 9) (Marks: 2)

The component-based development model is

 Only appropriate for computer hardware design.


 Not able to support the development of reusable components.
 Dependent on object technologies for support.
 Not cost effective by known quantifiable software metrics.

(Q 10) (Marks: 2)

Use-Cases are scenarios that describe

 How software is to be used in a given situation.


 How CASE tool will be used to construct the system.
 To build plan for a software product.
 The test cases for a software product.

(Q 11) (Marks: 2)

The cyclomtic complexity metric provides the designer with information regarding
the number of

 Cycles in the program.


 Errors in the program.
 Independent logic paths in the program.
 Statements in the program.

(Q 12) (Marks: 2)

In which software development problem solving stage are the results delivered?

 Status quo
 Problem definition
 Technical development
 Solution integration

(Q 13) (Marks: 2)

Which of the items listed below is not one of the software engineering layers?
 Process
 Manufacturing
 Methods
 Tools
www.vujannat.ning.com

CS504 Software Engineering - I


Mid Term Examination - November 2004
Time Allowed: 90 Minutes

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 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.
4. You are allowed to use any tool that helps in drawing Diagrams like Microsoft Word, Paint
etc.

Total Marks: 60 Total


Questions: 3

Question No. 1 Marks : 25

A food processor has the following motor control. It has a switch that is either in the On
position, or Off 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 motor continues to run. The motor has a heat sensor. If the motor
becomes 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.

a. Draw a state transition diagram for the system (10 marks)


b. Draw the message sequence diagram for the above system (10 Marks)
c. 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 and run) (5 Marks)
Question No. 2 Marks : 10

Briefly describe "Software Engineering Framework". Do provide examples and diagrams


where necessary.

Question No. 3 Marks : 25

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 country has a capital (5 marks)


b. A dining philosopher is using a fork (5 marks)
c. A file is an ordinary file or a directory (5
marks)
MIDTERM EXAMINATION
FALL 2006 Marks: 35
CS504 - SOFTWARE ENGINEERING – I Time: 60min

StudentID/LoginID: ______________________________

Student Name: ______________________________

Center Name/Code: ______________________________

Exam Date:

Please read the following instructions carefully before attempting any of the
questions:
1. Attempt all questions. Marks are written adjacent to each question.
2. 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.
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 only


Question 1 2 3 4 5 6 7 8 Total
Marks
WWW.vujannat.ning.com
http://vujannat.ning.com
Largest Online Community of VU Students

Question No: 1 ( Marks: 1 ) - Please choose one

Both the software engineer and customer take an active role in software requirements
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


► 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 On
position, or Off 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 motor continues to run. The motor has a heat sensor. If
the motor becomes 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.

a) Draw a state transition diagram for the system


b) Draw the message sequence diagram for the above system
c) 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 and
run

Question No: 7 ( Marks: 10 )

The Process of Software Development involves construction and Management. Discuss each
category 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-cycle
model.
WWW.vujannat.ning.COM
Connecting VU Students
MIDTERM EXAMINATION
FALL 2007 Marks: 40
CS504 - SOFTWARE ENGINEERING – I (Session - 7 ) 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 the
questions:
1. Attempt all questions. Marks are written adjacent to each question.
2. 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.
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 only


Question 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
► 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


► 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 Line


reservation 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 the
importance 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 a
printed invoice for the customers’ orders. Each invoice should contain a full list of items
ordered together with their price. Customers might order more than one of a particular item
so the invoice should show the number of each item ordered rather than list them multiple
times. The invoice
should display the cost of each item and the total amount payable. The invoice should also
print the customer’s name and address.”
WWW.vujannat.ning.COM
Connecting VU Students
MID TERM EXAMINATION
Total Marks: 60
SEMESTER FALL 2004
CS504-SOFTWARE ENGINEERING 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 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.
4. You are allowed to use any tool that helps in drawing Diagrams like Microsoft Word, Paint etc.
Question No: 1 Marks: 25

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: 10

Briefly describe “Software Engineering Phases”. Do provide examples and diagrams where necessary.

Question No: 3 Marks: 25

A food processor has the following motor control. It has a switch that is either in the On position, or Off
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 motor
continues to run. The motor has a heat sensor. If the motor becomes 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.

a. 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 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)
Page 1 of 1

www.vujannat.ning.com

CS504 Software Engineering – I


Mid Term Examination – Spring 2005
Time Allowed: 90 Minutes

Please read the following instructions carefully before attempting


any of the questions:
1. Attempt all questions. Marks are written adjacent to each question.
2. 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.
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.

Total Marks: 75 Total Questions: 4

Question No. 1 Marks : 16

Consider the following requirements specification for a computerized appointments system for a
doctors' surgery.

"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 patient's
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 a confirmed appointment within 24 hours, he has to pay 50
Rs. 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 an
appropriate login procedure that will only allow authorized users to enter the system."

a) Identify all non-functional requirements. [2 marks]


b) Identify all the actors and use cases and draw the corresponding use case diagram. [6
marks]
c) Elaborate Make Appointment use case. Clearly identify the pre-condition, post- condition,
normal course and the alternative courses. [8 marks]

Question No. 2 Marks : 09

Determine the errors in the following Data Flow Diagram. [9 marks]

Question No. 3 Marks : 10

The UML includes: use case diagrams, use case description, object model, sequence diagrams
and collaboration diagrams. Explain briefly what these are, making clear the relationships
between them. [10 marks]
www.vujannat.ning.com

CS504 Software Engineering


Mid Term Examination – Spring 2006
Time Allowed: 90 Minutes

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 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.
4. You are allowed to use any tool that helps in drawing Diagrams like Microsoft Word,
Paint etc.

Question No. 1 Marks : 2

In DFD we show the flow of data in a system.

 True
 False

Question No. 2 Marks : 2

Which of the followings is not part of software Engineering phases?


 Vision
 Definition
 Development
 Process

Question No. 3 Marks : 5

Activity Diagram give a pictorial description of

 Use case
 Objects
 State of system
 All of these.

Question No. 4 Marks : 2

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 model
diagram in each case.

a. A wheel has a tyre.


b. A file is a document file or an executable file.

Question No. 5 Marks : 5

Explain the purpose (using only two sentence in each case) of each of the following
components of UML

• Use case diagram


• Use case description
• Class diagram
• Sequence diagram
• Business or Domain model

Question No. 6 Marks : 5


Use Cases are the part of designing phase of software engineering

 True
 False

Question No. 7 Marks : 5

Consider the following requirements specification for a computerized appointments


system for a doctors’ surgery.

“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 patient’s 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.”

a) Draw a use case diagram for the above system (one of your use cases should be
“Make Appointment”) . (6 marks)
b) Provide a narrative description for the “Make Appointment” use case including
pre, post conditions and the main alternatives. (12 marks)
c) Draw the sequence diagram for the “Make Appointment” use case (you can
assume that there are classes corresponding to “GUI”, “Diary” and
“Appointment” as well as a database of “Patients”). (7 marks)

Question No. 8 Marks : 6

In data flow diagram an external entity can store/update data in data store directly
 True
 False

Question No. 9 Marks : 6

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)

1. The system should be designed so it can be later extended to handle a frequent-flyer


plan.
2. The system will allow the user to view the layout of seat in an aircraft.
3. The system must be available at all times. Only 2 minutes of downtime is to be
permitted.
4. A given seat can be assigned to at most one person at any given time.
WWW.vujannat.ning.com
http://vujannat.ning.com
Largest Online Community of VU Students
MIDTERM EXAMINATION
SPRING 2007 Marks: 40
CS504 – SOFTWARE ENGINEERING-I Time: 90min

Q1: Object models (as described for example using class diagrams) often incorporate
the following relations:
• generalisation-specialisation (inheritance)
• whole-part (aggregation)
• association
• object is instance of class

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 program


ii. 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 for
other engineering artifacts.(T,F)

Q: Ambiguity means _____________.


a. ambiguity means that two different readers of the same document interpret the
requirement differently
b. ambiguity means that two different writers of the same document interpret the
requirement differently
c. c. ambiguity means that different readers of the different documents interpret the
requirement differently
d. both “b” and “c”
Q: 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. Car and engine


b. A polygon is composed of an ordered set of points
c. Computer and its accessories like keyboard, mouse and monitor

Q: Software engineering is often characterized as “programming-in-the-large”. List ten


reasons 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 as
any additional ones will not be considered).

Q: The current software crisis was caused by the Y2K problem whose seeds were first
sown by careless programmers in the early 1970's. (T, F)
CS504-Software Engineering I
Midterm Special 2006
www.vujannat.ning.com
Question #1:- What makes requirements elicitation difficult?
¾ bounding scope
¾ understanding user needs
¾ requirements volatility
¾ all of the above

Question # 2:- Which of the items listed below is not one of the software engineering
layers?
¾ Process
¾ Manufacturing
¾ Methods
¾ Tools

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 using
the ordering system. The diagram takes the simple steps listed below and shows
them as actions or use cases the customer might perform.
Question # 4:- What are the three generic phases of software engineering?
¾ definition, development, support
¾ what, how, where
¾ programming, debugging, maintenance
¾ analysis, 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.
¾ 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 can
be increased by using fine-grain, self-contained components.

Question # 6:- Which of these items should be used to select a software process
framework?
¾ People
¾ Product
¾ Project
¾ All of the above

Question # 7:- The prototyping model of software development is


¾ A reasonable approach when requirements are well
defined.
¾ A useful approach when a customer cannot define
requirements clearly
¾ The bestapproach to use for projects with large
development teams
¾ A riskymodel that rarely produces a meaningful product

You might also like