next up previous
Next: About this document ...

CISP457 Practice Midterm 2

Prof. Tak Auyeung

Instructions: You may bring any material that is handwritten or printed prior to the examination to help you. You can also bring a calculator if you think it may help you. However, you can only use the calculator for numerical computations only. You cannot let your calculator compile a program, or to communicate with others.

You, as an individual, are expected to do your own work. This means you cannot seek, receive or otherwise acquire any assistance except clarifications from the professor during an examination. Any communication involving the contents of the subject matter or the examination is considered cheating. Do not initiate or accept such communication, or the result of your examination is automatically voided.

New rules, read this! As of 2003.09.22, I no longer deduct points for wrong answers. Each correct answer is worth one point, each wrong answer is worth zero point, and each unanswered question is also worth zero point. This means you should guess and leave no question unanswered.

As a result, I also need to adjust the letter grade assignment break points. For your individual examinuation, ``A'' means at least 94%, ``B'' means at least 74%, ``C'' means at least 54%, ``D'' means at least 34% and ``F'' means below 34%. The break points for the final grade are now 26.83%, 48.5%, 70.17% and 91.83% as minimums for ``D'', ``C'', ``B'' and ``A'', respectively.

Please note that this change does not affect your letter grade at all, it is just a number game to make some people feel better about guessing.

Make sure you write down you name on the upper right corner first, otherwise I cannot give points to anonymous students!

The baseline is 10, there are 12 questions.

  1. What is/are a difference/differences between the overlapped (RAD) process model and the layered (incremental) process model?
    1. Only one begins a design process before the analysis process is complete for the entire information system.
    2. Only one demonstrates or delivers the system in stages.
    3. Only one delivers partial but tested and functional system in stages.
    4. 1a and 1b
    5. 1a and 1c
  2. What is an advantage of the ``Strictly sequential'' (waterfall) process model when compared to either the overlapped (RAD) process model and the layered (incremental) process model?
    1. the ``strictly sequential'' process model shortens the time to deliver some functional section of the whole system
    2. the ``strictly sequential'' process model provides more immediate feedback to the client
    3. the ``strictly sequential'' process model generates less version tracking hassle with documents
    4. none of the other choices is an advantage of the ``strictly sequential'' process model
    5. the ``strictly sequential'' process model catches problems earlier
  3. What is the maximum number of rows when a decision table has four independent condition?
    1. 4
    2. 8
    3. 12
    4. 16
    5. 256
  4. In the following state diagram, what triggers must have occurred if an object starts with the initial state and ends up at the final state?

    \includegraphics{mt2_sd1}

    1. only t1 and t2
    2. only t1 and t4
    3. only t2 and t3
    4. only t1, t3 and t4
    5. only t1, t2 and t4
  5. In order to represent the following pseudocode logic, how many diamonds are needed in the equivalent flowchart?


    \begin{algorithmic}
\REPEAT
\IF{$y > z$}
\STATE $x \leftarrow x + 1$
\ELSE
\STATE $x \leftarrow x + 2$
\ENDIF
\UNTIL{$x < y$}
\end{algorithmic}

    1. 0
    2. 1
    3. 2
    4. 3
    5. 4
  6. According to the following pseudocode, what is printed when $x$ has a value of 37?


    \begin{algorithmic}
\IF{$x < 0$}
\STATE print ''do''
\ELSIF{$x < 20$}
\STATE...
...50$}
\STATE print ''fa''
\ELSE
\STATE print ''so''
\ENDIF
\end{algorithmic}

    1. "me"
    2. "me" "fa"
    3. "me" "fa" "so"
    4. it is not clear from the pseudocode
    5. the pseudocode prints something other than the available choices
  7. Observe the following class diagram. Which class or classes possess (though may not be able to access) the attribute ``office''?
    1. faculty
    2. ft_faculty
    3. pt_faculty
    4. faculty and ft_facuty
    5. all of the classes possess the attribute ``office''
  8. Assuming every person can marry one other person or remain unmarried, and a marriage_lic object tracks a current marriage, what should be the multiplicities associated with the ``person'' side and ``marriage_lic'' side of the association? Note that a divorce deletes a marriage_lic object, as does the death of one spouse in a marriage.

    For the purpose of this question (and only this question), assume the notations ``2'', ``1..2'' and ``0..2'' are also allowed.

    \includegraphics{mt2_cd2}

    1. ``2'' and ``1''
    2. ``2'' and ''0..1''
    3. ``1'' and ``2''
    4. ``1'' and ``0..1''
    5. ``1'' and ``0..2''
  9. A ``store'' object represents a store, a ``stock_rec'' object represents the record of a particular merchandise, a ``SKU'' object represents information of a particular kind of merchandise. The class diagram is illustrated as follows.

    \includegraphics{mt2_cd3}

    When does a ``store'' object deleted?

    1. when all ``stock_rec'' objects are deleted
    2. when all ``SKU'' objects are deleted
    3. when all ``stock_rec'' objects and all ``SKU'' objects are deleted
    4. when all ``stock_rec'' objects associated with it are deleted
    5. none of the above determines when a ``store'' object is deleted
  10. According to the following diagram, what happens when a ``CHP'' object is deleted?

    \includegraphics{mt2_cd4}

    1. a separate object of class ``Officer'' is deleted
    2. all ticket objects associated with the ``CHP'' object is deleted
    3. all ticket objects are deleted
    4. a separate object of class ``Sheriff'' is deleted
    5. the diagram does not confirm any of the other choices



next up previous
Next: About this document ...
Tak Auyeung 2003-11-03