V.Vidhya Logo

V.Vidhya

Basic Operators


Q1.

Apply the right assignment operator, which will result in x being 20

In the blank, only an assignment operator can be added, any extra variable isn’t allowed to be added here. i.e. this can’t be done: x = x + y

x = 15;
y = 5;
x __ y;

Q2.

Apply the right assignment operator, which will result in x being 30

x = 10;
y = 3;
x __ y;

Prev Post
Fundamentals
Next Post
Unary Operators