0% found this document useful (0 votes)
3 views1 page

Grade IX Computer App Operators Guide

The document contains a series of programming exercises focused on operators and expressions in Java for Grade IX Computer Applications. It includes calculations involving variable manipulation, typecasting, and rewriting statements without shorthand operators. Additionally, it asks for evaluations of specific expressions and the final values of variables after certain operations.

Uploaded by

trishathakkar023
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Grade IX Computer App Operators Guide

The document contains a series of programming exercises focused on operators and expressions in Java for Grade IX Computer Applications. It includes calculations involving variable manipulation, typecasting, and rewriting statements without shorthand operators. Additionally, it asks for evaluations of specific expressions and the final values of variables after certain operations.

Uploaded by

trishathakkar023
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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;

You might also like