Assignment_11_Worksheet_sol.pdf - Software Testing Verification Assignment 11 Group Activity Worksheet 1(3 pts Which one of the following statements

# Assignment_11_Worksheet_sol.pdf - Software Testing...

• Homework Help
• 2

This preview shows page 1 - 2 out of 2 pages.

Software Testing & Verification Assignment 11 Group Activity Worksheet 1. (3 pts.) Which one of the following statements best captures the precise meaning of the strong correctness predicate, "{P} S {Q} strongly"? (Circle ONE only.) a. P must hold before S executes and Q must hold if S terminates. b. {P} S {Q} is true unless Q could be false if S terminates. c. If P holds before executing S, S must terminate in state Q. d. If P holds before executing S, {P} S {Q} is true unless S could terminate with Q being false. e. {P} S {Q} is true unless Q is always false when S terminates, given that P held before executing S. 2. (6 pts.) Consider the hypothesized invariant: for the assertion: Which of the following correctly identifies which of the while_do statement ROI antecedents would hold when attempting to prove this assertion using the given hypothesized invariant? (Circle ONE only.) a. initialization only e. initialization and finalization only b. preservation only f. initialization and preservation only c. finalization only g. initialization, preservation, and finalization

Subscribe to view the full document.

• Fall '08
• Thebaut

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern