CSC 750 Service-Oriented Computing Homework Solutions and Grading Key - Prof. Singh, Assignments of Computer Science

The solutions and grading key for a homework assignment in csc 750, a service-oriented computing course. It includes questions related to extended transaction models, transactional frameworks, and event computations.

Typology: Assignments

Pre 2010

Uploaded on 03/10/2009

koofers-user-fxb-1
koofers-user-fxb-1 🇺🇸

4

(2)

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSC 750
Service-Oriented Computing
H2
1/10/2007 Solution and Grading Key
1. (8 points) Identify all of the following statements that are true about extended transaction models
A. An extended transaction must have a vital subtransaction
B. A vital subtransaction of extended transaction never needs to have a compensate defined, since if the
vital subtransaction fails, the extended transaction is dead anyway
C. If an extended transaction has exactly two subtransactions, exactly one of which is vital, then the vital
subtransaction does not need a compensate defined
D. If an extended transaction has exactly two subtransactions, neither of which is vital, then we can set
things up so we need compensate for only one subtransaction
Solution: C and D
2. (8 points) Which of the following statements are true about the transactional frameworks?
A. A Business Transaction Protocol atom relaxes atomicity
B. A Business Transaction Protocol cohesion relaxes atomicity and isolation
C. A Business Transaction Protocol cohesion involves a special role called the BTP Composer
D. A Business Transaction Protocol atom has the same behavior as a WS-AtomicTransaction
Solution: B and C
3. (8 points) Identify all correct expressions that capture the following specification involving event computations:
If both eand foccur, then goccurs in between eand f
A. efe·g·ff·g·e
B. e·g·ff·g·e
C. efe·gg·e
D. (efe·g·f)(eff·g·e)
Solution: A
D is false; it would be true if the operator between the two parenthesized expressions were instead of
4. (8 points) Identify all correct expressions that capture the following:
Given that eis immediate, the dependency eg·estrengthens to the following dependency:
A. eg·e
B. 0
C. g·e
D. ee
Solution: B and D
Notice that D is identical to B in terms of meaning. For the homework grading, however, we will entertain D
as not being checked because some students interpreted the problem to refer to the syntax of the expression
generated, not its meaning.
Page 1 of 1

Partial preview of the text

Download CSC 750 Service-Oriented Computing Homework Solutions and Grading Key - Prof. Singh and more Assignments Computer Science in PDF only on Docsity!

CSC 750

Service-Oriented Computing

H

1/10/2007 Solution and Grading Key

  1. (8 points) Identify all of the following statements that are true about extended transaction models A. An extended transaction must have a vital subtransaction B. A vital subtransaction of extended transaction never needs to have a compensate defined, since if the vital subtransaction fails, the extended transaction is dead anyway C. If an extended transaction has exactly two subtransactions, exactly one of which is vital, then the vital subtransaction does not need a compensate defined D. If an extended transaction has exactly two subtransactions, neither of which is vital, then we can set things up so we need compensate for only one subtransaction

Solution: C and D

  1. (8 points) Which of the following statements are true about the transactional frameworks? A. A Business Transaction Protocol atom relaxes atomicity B. A Business Transaction Protocol cohesion relaxes atomicity and isolation C. A Business Transaction Protocol cohesion involves a special role called the BTP Composer D. A Business Transaction Protocol atom has the same behavior as a WS-AtomicTransaction

Solution: B and C

  1. (8 points) Identify all correct expressions that capture the following specification involving event computations: If both e and f occur, then g occurs in between e and f A. e ∨ f ∨ e · g · f ∨ f · g · e B. e · g · f ∨ f · g · e C. e ∨ f ∨ e · g ∨ g · e D. (e ∨ f ∨ e · g · f ) ∧ (e ∨ f ∨ f · g · e)

Solution: A D is false; it would be true if the operator between the two parenthesized expressions were ∨ instead of ∧

  1. (8 points) Identify all correct expressions that capture the following: Given that e is immediate, the dependency e ∨ g · e strengthens to the following dependency: A. e ∨ g · e B. 0 C. g · e D. e ∧ e

Solution: B and D Notice that D is identical to B in terms of meaning. For the homework grading, however, we will entertain D as not being checked because some students interpreted the problem to refer to the syntax of the expression generated, not its meaning.

Page 1 of 1