HW 3.docx - Cindy Pham Chapter 3 Review Multiple Choice 1 C...

• 3
• 100% (1) 1 out of 1 people found this document helpful

This preview shows 1 out of 3 pages.

Cindy Pham Chapter 3 Review Multiple Choice 1. C 2. B 3. D 4. A 5. C 6. B 7. C 8. B 9. A 10. B 11. C 12. A True or False 1. False 2. False 3. False 4. True 5. True Short Answer 1. “Conditionally executed” means that the set of statements will only be executed under certain circumstances. 2. To execute one set of statements if the condition is true and a different set of statements if the condition is false, I would use the dual alternative decision structure. 3. The and operator is only true if both subexpressions are true. 4. The or operator is true if either subexpressions are true. 5. It is best to use the and operator when determining whether a number is inside a range.

Subscribe to view the full document.

Cindy Pham 6. A flag is a variable that signals whether some condition exists in the program. A flag can be used by setting its value equal to a Boolean and tested by using an if statement to check if it is true or false.
You've reached the end of this preview.
• Summer '14
• Equals sign, Philosophy of mathematics, relational operator, set of statements, Cindy Pham

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern