CSC165H1 Lecture Notes - Venn Diagram
cherryberry1035 and 38883 others unlocked
3
CSC165H1 Full Course Notes
Verified Note
3 documents
Document Summary
You are given seven di erent programs a, c, e, g, i, k, m , each meant to carry out the same task, where programs. C, g, k, m are written in python and programs a, e, i are written in java: suppose that programs c, a, e, i, m are correct and programs g, k are incorrect. For each statement below, say whether the statement is true or false, and give the smallest number of programs that must be tested to verify your claim. Justify each answer. (a) all python programs are correct. (b) some correct program is written in java. (c) every java program is correct. (d) only programs written in python are incorrect. Fall 2011: let p represent the set of all programs (our universe or domain ), j represent the set of all java programs, and t represent the set of all correct programs. Dept. of computer science, university of toronto, st. george campus.