COMP 230 Final Exam
Final Exam: Page 1
1. (TCO 2) What is an example of a string constant?
2. (TCO 2) What is the assignment operator?
3. (TCO 2) The symbols used to describe the logic of a program are known as _____.
4. (TCO 2) If a variable holds the value 12345, what is its data type?
5. (TCO 3) The logical AND operator can replace ____ in how it behaves.
6. (TCO 3) Which pseudo code produces the same result as the following? if customer Age > 65 OR customer Age = 65 then discount = 0.10 else discount = 0 end if
7. (TCO 3) What logic operator could be used to replace the nested selection structure in this pseudo code?
8. (TCO 3) In order to have the most efficient program, which question should be asked first when working with an AND decision?