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

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

View Full Document Right Arrow Icon
EECS 280 Winter 2011 1 EECS 280: Midterm Winter 2011 This is a closed-book exam. There are 5 problems on 15 pages. Read the entire exam through before you begin working. Work on those problems you find easiest first. Read each question carefully, and note all that is required of you. Keep your an- swers clear and concise, and state all of your assumptions carefully. Each question has a box for your answer; put your answers in the boxes provided. Write your uniqname on the line provided at the top of each page. You are to abide by the University of Michigan/Engineering honor code. Please sign below to signify that you have kept the honor code pledge. Honor code pledge : I have neither given nor received aid on this exam, nor have I concealed any violations of the Honor Code. Signature: _________________________________________ Name: _________________________________________ Uniqname: _________________________________________
Background image of page 1

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

View Full DocumentRight Arrow Icon
Uniqname:________________________________________________________________________________ EECS 280 Winter 2011 2
Background image of page 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
Background image of page 3

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

View Full DocumentRight Arrow Icon
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. Pass 8 and -4 as arguments. Should return 4.
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/07/2012 for the course EECS 280 taught by Professor Noble during the Fall '08 term at University of Michigan.

Page1 / 15

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

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online