Senin, 08 April 2013

Concepts of Programming Languages - Chapter 7

Review Questions
2. Operator that has three operands.
3. Operator that precede its operands.
4. Exponentiation operator.
11. Multiple use of an operator.
18. Short circuit evaluation is one in which the result is determined without evaluating all of the operands and/or operators.
25. Ada doesn't allowed mixed mode assignment.
26. Mixed mode assignment are allowed in Java only if the required coercion is widening.

Problem Set
5. No, it shouldn't be included in other language because in C there are some characteristics assigning operations that available just in C language, in case that the assigning operator in C make it unique and different from the other language.
6. No, it shouldn't be included in other language because in C there are some characteristics single operand assignment forms that available just in C language, in case that the single operand assignment forms in C make it unique and different from the other language.
9.
a. ( ( (a*b)1 -1 )2 +c)3
b. ( ( ( a* (b-1)1 )2 /c)3 mod d)4
c. ( ( ( ( ( (a-b)1 /c)2 (d*e)3 /a)4 -3)5 &)6
d. (- ( ( (a or c)1 (d and e) )2 = )3 )4
e. ( ( ( (a>b)1 xor c )2 or (d<=17) )3
f. (- (a+b)1 )2
15. Because C is a structured programming language that makes C must read every line on that code, so if there is a simple error it will be detected immediately, in that case it makes C difficult to eliminate its functional side effect.
21. Because Java is using associativity rules of the language that makes Java read an expression from left to right.

Tidak ada komentar:

Posting Komentar