quiz3_s002_sol

quiz3_s002_sol - CS 012 Intro to Computer Science II Quiz 3...

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

View Full Document Right Arrow Icon
CS 012 – Intro to Computer Science II Spring - 2005 Quiz 3 Section 002 – Friday 4/15 SOLUTION Each question is worth 1 point. 1. Connecting all object files together to form an executable file is called a. assembling b. linking c. compiling d. debugging 2. If x is negative, the following statement assert(x >= 0); e. terminates the program, displays the file name, line number, and expression. f. does nothing. g. outputs a warning and continues executing the program. h. outputs a warning, sets x equal to 0 and continues executing the program. i. returns the value false. 3. “Regression” testing refers to j. Never throwing away a test k. Never throwing away a version of your code l. Testing your code one function or class at a time m. Using a test harness n. A psychological analysis of your code 4. What values should you choose when testing a function you wrote? o. Values that think will succeed p. Values that think will fail q. Values that are border cases r. Randomly generated values
Background image of page 1

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

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

Page1 / 2

quiz3_s002_sol - CS 012 Intro to Computer Science II Quiz 3...

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

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