Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Give the value of each of the following expressions in the specified, language.

ID: 3939311 • Letter: G

Question

Give the value of each of the following expressions in the specified, language. If the expression is illegal, give "illegal" as your answer. If the value of an expression is undefined, give "undefined" as your answer. Ada: 2 ** 4 Java: --i !=J++ ? i--: ++j Assume that i is 4 and j is 3 before the expression is evaluated. C i-- || ++j ? j: 1 Assume that i is 2 and j is 5 before the expression is evaluated. C: i/--i Assume that i is 2 before the expression is evaluated. C++: d = (i= 4.5) + l Assume that i is an int variable and d is a double variable. Ada: 8 rem (abs (4 - 7)) Java: i = j + k Assume that i, i, and k arc short variables and that j is 3 and k is 7. APL: 24 + 30 - 6 x 3

Explanation / Answer

a) Vaid . It produce the value equal to 16.(i.e -2 power of 4)

b)Valid . It produce the value equal to 5

c)Valid . It produce the value equal to 5

d)Valid . It produce the value equal to 1

e)Valid.It produce the value equal to 5(note : assume i,d declaration already done)

f)Valid.It produces value 2.

g)Valid . It produce the value equal to 10

h)Valid .It is simply arthimetic expression.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote