{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Midterm-w11

# Midterm-w11 - EECS 280 Midterm Winter 2011 This is a...

This preview shows pages 1–5. Sign up to view the full content.

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

View Full Document
Uniqname:________________________________________________________________________________ EECS 280 Winter 2011 2
Uniqname:________________________________________________________________________________ EECS 280 Winter 2011 3 1 Testing Problem 1 _________ out of 20 Problem 2 _________ out of 20 Problem 3 _________ out of 20 Problem 4 _________ out of 20 Problem 5 _________ out of 20 Total: ________ out of 100

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

View Full Document
Uniqname:________________________________________________________________________________ EECS 280 Winter 2011 4 In the following three parts to this question, you are given a specification of a function. For each function, you must supply the requested number of simple test cases and the requested number of boundary- condition test cases. For each test case, you must provide: a description of the test case, the expected behavior for a correct implementation of the function, and why the case is a boundary case (if applicable). Give English descrip- tions of your test cases and provide sufficient detail so that your test can be repeated fully. For full credit, your cases should collectively provide maximum coverage of behavior. Here is an example: int gcd(int x, int y); // EFFECTS: returns the greatest common divisor of x,y Supply one simple test case for the gcd function: Pass 20 and 10 as arguments. Should return 10 Supply two boundary test cases for the gcd function: Pass 37 and 71 as arguments. Should return 1. Relative primes tests the termination condition.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### 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