Quiz for:
Understanding Binary and Assignment Operators

Question 1

Explain the operation performed by `a *= b`.

Question 2

What will be the final value of `a` after executing `a /= b` if `a = 400` and `b = 20`?

Question 3

What is the result of `a -= b` if `a = 50` and `b = 15`?

Question 4

If `int a = 10;` and `int b = 20;` then what will be the final value of `a` after `a += b`?

Question 5

Describe the operation performed by the assignment operator `/=`.

Question 6

What will be the value of `a` after executing `a %= b` if `a = 20` and `b = 20`?

Question 7

What does the assignment operator `+=` do?

Question 8

What does the `=` operator do?

Question 9

If `a = 12` and `b = 8`, what will be `a` after `a %= b`?

Question 10

How many assignment operators are there in the context of binary operators?

Question 11

If `int a = 20;` and `int b = 20;` then what will be the final value of `a` after executing `a *= b`?

Question 12

What will be the final value of `a` after `a = 8` and `a *= 3`?

Question 13

What is the equivalent long-form of the statement `a /= b`?

Question 14

What would be the final value of `a` after executing `a -= b` if `a = 40` and `b = 20`?

Question 15

What does the assignment operator `%=` do?