This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Sheet1 Page 1 Review Questions from Chapter 7 of the textbook: 1-16. (These should be at most one sentence each. Note: skip the subque 1. Define operator precedence and operator associativity. The operator precedence define the evaluation order of operators with different precedence and operator associativity defines 2. Define functional side effect. Functional side effect occurs when a function changes one of its parameters or global variable producing a side effect. 3. What is a coercion? Coercion is conventions for implicit operand type conversion that are defined by mixed-mode expressions. 4. What is a conditional expression? Conditional expressions such as if-then-else are utilized to change the flow of code executing based on conditions such as Bo 5. What is an overloaded operator? Overloaded operator is an operator capable of multiple use depending on an evaluation process. 6. Define narrowing and widening conversions. P.303 Narrowing conversion transfers a value to a type that cannot store the full or even approximations of all the values of the origi 7. What is a mixed-mode expression? Mixed-mode expressions are expressions have operators that can have operands of varying types. 8. How does operand evaluation order interact with functional side effects? Operand evaluation order deals with the order operands and functions are evaluated or executed which can cause a functiona 9. What is short-circuit evaluation? The short-circuit evaluation of an expression ending in set results regardless of evaluating all operands and/or operators. 10. Name a language that always does short-circuit evaluation of Boolean expressions. Name one that never does it. Name Java always does short-circuit evaluation of Boolean expressions, Visual Basic and Pascal never does it, and Ada allows cho 11. How does C support relational and Boolean expressions?How does C support relational and Boolean expressions?...
View Full Document
- Spring '07