Programming Logic & Design Comprehensive 9th Edition by Joyce Farrell – Test Bank
True / False |
1. You use the case structure only when a series of decisions is based on a single expression. a. True b. False ANSWER: True POINTS: 1 REFERENCES: 164 QUESTION TYPE: True / False HAS VARIABLES: False DATE CREATED: 9/12/2016 12:41 PM DATE MODIFIED: 10/9/2016 5:38 PM |
2. In any comparison, the two values compared can be either variables or constants. a. True b. False ANSWER: True POINTS: 1 REFERENCES: 130 QUESTION TYPE: True / False HAS VARIABLES: False DATE CREATED: 9/12/2016 12:41 PM DATE MODIFIED: 10/9/2016 12:03 PM |
3. Any decision can be made using combinations of just two types of comparisons: equal and not equal. a. True b. False ANSWER: False POINTS: 1 REFERENCES: 131 QUESTION TYPE: True / False HAS VARIABLES: False DATE CREATED: 9/12/2016 12:41 PM DATE MODIFIED: 9/12/2016 12:41 PM |
4. Most programming languages allow you to ask two or more questions in a single comparison. a. True b. False ANSWER: True POINTS: 1 REFERENCES: 139 QUESTION TYPE: True / False HAS VARIABLES: False DATE CREATED: 9/12/2016 12:41 PM DATE MODIFIED: 9/12/2016 12:41 PM |
5. A short-circuit evaluation is where each part of an expression is evaluated only as far as necessary to determine whether the entire expression is true or false. a. True b. False ANSWER: True POINTS: 1 REFERENCES: 139 QUESTION TYPE: True / False HAS VARIABLES: False DATE CREATED: 9/12/2016 12:41 PM DATE MODIFIED: 9/12/2016 12:41 PM |
6. When you need to satisfy two or more criteria to initiate an event in a program, you must make sure that the second decision is made entirely independently of the first decision. a. True b. False ANSWER: False POINTS: 1 REFERENCES: 141 QUESTION TYPE: True / False HAS VARIABLES: False DATE CREATED: 9/12/2016 12:41 PM DATE MODIFIED: 9/12/2016 12:41 PM |
7. The NOT operator is a unary operator, meaning it takes only one operand. a. True b. False ANSWER: True POINTS: 1 REFERENCES: 153 QUESTION TYPE: True / False HAS VARIABLES: False DATE CREATED: 9/12/2016 12:41 PM DATE MODIFIED: 9/12/2016 12:41 PM |
8. Most programming languages limit the number of AND and OR operators in an expression. a. True b. False ANSWER: False POINTS: 1 REFERENCES: 160 QUESTION TYPE: True / False HAS VARIABLES: False DATE CREATED: 9/12/2016 12:41 PM DATE MODIFIED: 9/12/2016 12:41 PM |
9. When you combine AND and OR operators, the OR operators take precedence, meaning their Boolean values are evaluated first. a. True b. False ANSWER: False POINTS: 1 REFERENCES: 160 QUESTION TYPE: True / False HAS VARIABLES: False DATE CREATED: 9/12/2016 12:41 PM DATE MODIFIED: 9/12/2016 12:41 PM |
10. You can use parentheses to override the default order of operations. a. True b. False ANSWER: True POINTS: 1 REFERENCES: 161 QUESTION TYPE: True / False HAS VARIABLES: False DATE CREATED: 9/12/2016 12:41 PM DATE MODIFIED: 9/12/2016 12:41 PM |
Reviews
There are no reviews yet.