please help me fast
Answers
1. To evaluate – (2 + 3) ** 3 - 6/2
(2 + 3) ** 3 - 6/2
= 5 ** 3 - 6/2
= (5 × 5 × 5) - 6/2
= 125 - 6/2
= 125 - 3.0
= 122.0 (Answer)
2. To evaluate – (2 + 3) * 5//4 + (4 + 6)/2
(2 + 3) * 5//4 + (4 + 6)/2
= 5 * 5//4 + (4 + 6)/2
= 25//4 + (4 + 6)/2
= 6 + (4 + 6)/2
= 6 + 10/2
= 6 + 5.0
= 11.0 (Answer)
3. To evaluate – 12 + (3 * 4 - 6)/3
12 + (3 * 4 - 6)/3
= 12 + (12 - 6)/3
= 12 + 6/3
= 12 + 2.0
= 14.0 (Answer)
4. To evaluate – 12 + (3 ** 4 - 6)//2
12 + (3 ** 4 - 6)//2
= 12 + (3 × 3 × 3 × 3 - 6)//2
= 12 + (81 - 6)//2
= 12 + 75//2
= 12 + 37
= 49 (Answer)
5. To evaluate – 12 * 3 % 5 + 2 * 6 // 4
12 * 3 % 5 + 2 * 6 // 4
= 36 % 5 + 2 * 6 // 4
= 1 + 2 * 6 // 4
= 1 + 12 // 4
= 1 + 3
= 4 (Answer)
6. To evaluate – 12 % 5 * 3 + (2 * 6) // 4
12 % 5 * 3 + (2 * 6) // 4
= 2 * 3 + (2 * 6) // 4
= 6 + (2 * 6) // 4
= 6 + 12 // 4
= 6 + 3
= 9 (Answer)
To Be Noted: You have to remember the operator precedence table for solving these types of questions.
See attachment for operator precedence table.