Support Learning
Grade IX Sub: Computer App (Operators) Date : 26-06-24
Solve the following :
a) If a = 5, b = 9, calculate the value of:
a += a++ - ++b + a
b) f x = 3, y = 7, calculate the value of:
x -= x++ - ++y
c) What is typecasting in Java? Give an example.
d) Evaluate the following expressions, if the values of the
variables are a = 2, b = 3 and c = 3
i. a - (b++) * (--c)
ii. a * (++b) %c
e) Rewrite the following statements without using shorthand
operators.
a. p /= q
b. p -= 1
c. p *= q + r
d. p -= q - r
f) State the value a, b and c after the execution of each of the
following statements where a=12, b=13 and c=11: i. a=a++ + – –
b + c++;
g) What is the result stored in x, after evaluating the following
expression? int x = 5; x = x++ *2 + 3 * –x;