Answer:
5
Step-by-step explanation:
The order of execution is very important in solving the question
( ) - first
* and % operator takes the same amount of precedence then you consider the order from left to right
then + last
3 + 2 * 4 % (2 + 4) = 3 + 2 * 4 % 6 = 3 + 8 % 6 = 3 + 2 = 5
So 5 is the value that will be assigned to the answer variable
Note:
8 % 6 is the remainder of 8/6 which is 2.