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

This worksheet covers various aspects of program behavior and testing, including giving examples of program behavior problems, understanding the concept of functional equivalence, and comparing program testing and program analysis. Students will be asked to describe what makes a problem a program behavior problem, understand the definition of a typed program, and compare and contrast program testing and program analysis.

Typology: Study notes

Pre 2010

Uploaded on 07/23/2009

koofers-user-bzo
koofers-user-bzo 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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.