Question:Which of the following expressions multiply the value of the integer variable $a by 4? (Choose 2)
A $a *= pow (2, 2);
B $a >>= 2;
C $a <<= 2;
D $a += $a + $a;
E None
/32
+ Answer
AC
+ ExplanationThe correct answers are A and C. In Answer A, the pow function is used to calculate 22, which corresponds to 4. In Answer C, the left bitwise shift operator is used to shift the value of $a by two bits to the left, which corresponds to a multiplication by 4.