hw3(2) - CS 130 Spring 2009 Software Engineering Problem...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 130 — Spring 2009 Problem Set #3 Software Engineering Due May 13, 11:59a.m. Problem 3.1. (5 points) Which of the following statements are true? 1. 100% path coverage implies 100% branch coverage 2. 100% statement coverage implies 100% branch coverage 3. Suppose test suite T 1 gets 100% branch coverage and test suite T 2 gets 100% statement coverage. There can be an execution path explored in T 2 but not by T 1 . 4. There is a program such that no test suite can get 100% branch cov- erage. 5. There are incomparable coverage metrics; i.e., there are two coverage metrics such that 100% coverage for metric 1 does not imply 100% coverage for metric 2 and vice versa. Problem 3.2. (10 points) Many programs (e.g., for communication protocols) are written as finite state machines, for example, in a language like Statecharts. The program has a set of “states”, a set of “input events”, and a set of “output events”. The program starts in some initial state. At each state, the program waits for an input event. Depending on the current
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern