Docsity

Program Behavior and Testing Worksheet - Prof. Eric Torng, Study notes of Computer Science

Toggle sidebar
bg1
Module 6 Worksheet
In Class Questions
1) (S4) Give an example program behavior problem with one input.
Input:
Output:
2) (S4) Give an example program behavior problem with two inputs.
Input:
Output:
3) (S6) How do we determine if a program P we have written is correct?
4) (S6) What are some weaknesses of this approach?
5) (S6) What might be a better approach?
6) (S8) Give a yes input instance to the Functional Equivalence problem.
Take home review questions
1) Describe what makes a problem a program behavior problem?
2) What is type program?
3) Compare/contrast program testing with program analysis.

Partial preview of the text

Download Program Behavior and Testing Worksheet - Prof. Eric Torng and more Study notes Computer Science in PDF only on Docsity!

Module 6 Worksheet In Class Questions

  1. (S4) Give an example program behavior problem with one input. Input: Output:
  2. (S4) Give an example program behavior problem with two inputs. Input: Output:
  3. (S6) How do we determine if a program P we have written is correct?
  4. (S6) What are some weaknesses of this approach?
  5. (S6) What might be a better approach?
  6. (S8) Give a yes input instance to the Functional Equivalence problem. Take home review questions
  7. Describe what makes a problem a program behavior problem?
  8. What is type program?
  9. Compare/contrast program testing with program analysis.