Answer:
The correct answer is:
e) Both `answer *= 2;` and `answer = answer * 2;` but not `answer += 2;`
Step-by-step explanation:
- `answer += 2;` adds 2 to the current value of `answer`. It does not double the value but increments it by 2.
- `answer *= 2;` multiplies the current value of `answer` by 2, effectively doubling it.
- `answer = answer * 2;` performs the same operation as `answer *= 2;`, multiplying the current value of `answer` by 2.
So, only option e) correctly doubles the value stored in `answer`.