Docsity

Software Project Planning and Management - Study Guide | CPSC 6179, Study notes of Computer Science

Toggle sidebar
bg1
CPSC 6179 Mid-Term Exam Spring 2006
CPSC 6179 Software Project Planning and Management
Mid–Term Exam Spring 2006
This exam must be taken on or before Friday, February 17, 2006
THIS EXAM IS OPEN BOOK, OPEN NOTES.
THE TIME ALLOWED IS 1 HOUR 15 MINUTES.
1. (20 points) Imagine a spell checking program that might not correctly identify all
words that are misspelled. (The word “misspell” is itself often misspelled.)
a) Identify the primary failure mode for such a program.
b) How would you characterize the likelihood of such a failure?
c) How would you characterize the cost associated with the risk.
ANSWERS: My answers were as follows:
a) The primary failure mode is an incorrect response to spelling a word.
False Positive: It claims that a correctly spelled word is misspelled.
False Negative: It claims that a misspelled word is correctly spelled.
b) I would characterize the likelihood of such a failure as moderate to high.
c) I would characterize the cost associated with the failure as slight to moderate.
NOTES: Basically this question is not clearly crafted and there are a lot of possible answers.
I gave full credit to anyone who gave a good rationale for the assessments, even if those
assessments disagreed with mine.
pf3
pf4

Partial preview of the text

Download Software Project Planning and Management - Study Guide | CPSC 6179 and more Study notes Computer Science in PDF only on Docsity!

CPSC 6179 Software Project Planning and Management

Mid–Term Exam Spring 2006

This exam must be taken on or before Friday, February 17, 2006

THIS EXAM IS OPEN BOOK, OPEN NOTES.

THE TIME ALLOWED IS 1 HOUR 15 MINUTES.

  1. (20 points) Imagine a spell checking program that might not correctly identify all words that are misspelled. (The word “misspell” is itself often misspelled.) a) Identify the primary failure mode for such a program. b) How would you characterize the likelihood of such a failure? c) How would you characterize the cost associated with the risk. ANSWERS: My answers were as follows: a) The primary failure mode is an incorrect response to spelling a word. False Positive: It claims that a correctly spelled word is misspelled. False Negative: It claims that a misspelled word is correctly spelled. b) I would characterize the likelihood of such a failure as moderate to high. c) I would characterize the cost associated with the failure as slight to moderate. NOTES: Basically this question is not clearly crafted and there are a lot of possible answers. I gave full credit to anyone who gave a good rationale for the assessments, even if those assessments disagreed with mine.
  1. (40 points) You are given the following list of activities that are part of a project. Activity Duration Comments A 2 days Must precede all other activities B 3 days Must precede activity C C 3 days Must precede activity D D 4 days No precedence rules E 6 days Must precede activity F F 5 days No precedence rules G 8 days No precedence rules a) Draw the activity graph associated with this project. HINT: A number of dummy activities must be inserted, as well as a START and FINISH node. My diagram requires three dummy activities. b) Identify the critical path (as a sequence of jobs). c) What is the minimum time duration for this project? ANSWER: Here is the activity graph as I drew it. The Critical Path is jobs A, E, and F. The critical path has length 13. The length of the critical path is the minimum time duration for the project. The minimum time is 13 days. NOTE: The minimum time path (10 days) is only of marginal importance.
  2. (20 points) Briefly explain the difference between the terms “validation” and “verification” as used in standard software development. ANSWER: We quote from page 51 of the textbook. Even this is long–winded. “ validation ensures that the system has implemented all of the requirements, so that each system function can be traced back to a particular requirement in the specification.” “ verification ensures that each function works correctly.” “That is, validation makes sure that the developer is building the right product (according to the specification), and verification checks the quality of the implementation.”
  3. (20 points) You are given a well–documented and reliable function ATAN(Z) which returns the angle whose tangent is Z (See the figure below).

ANSWER: Let  = ATAN(Z). Suppose that Z is a finite real number.

If Z > 0, then 0 <  < 90 ( /2 radians).

If Z = 0, then  = 0.

If Z < 0, then – 90 <  < 0.

As written the ATAN function will never return  = 90 or  = – 90.

Let Z = Y / X. If Z > 0, then either X > 0 and Y > 0 or X < 0 and Y < 0. If Z < 0, then either X > 0 and Y < 0 or X < 0 and Y > 0. Note: If X = 0, Y / X is not defined. NOTE: Too many students got hung up on this one. One does not throw and exception when X = 0, but handles it separately, as follows: If (X = 0) Then If Y > 0 Return 90 Else if Y < 0 Return 270 Else // Here Y = 0 and X = 0, so it is appropriate to throw an exception. End If Else // X is not 0 Z = Y / X  = ATAN(Z) // Process this based on the sign of X. End If Suppose X  0. This table tells us what to do. X > 0 X < 0 Z > 0 Y > 0

Y < 0

Z = 0  = 0  = 180

Z < 0 Y < 0

  • 90 <  < 0

Y > 0

  • 90 <  < 0

If X = 0, then if Y > 0 then  = 90

if Y < 0 then  = 270. Admittedly Y/X is undefined for each case.

If X = 0 and Y = 0, there is no answer. Comment: In grading I looked for some sort of distinct handling for the three cases based on the sign of X.