Identify the correct output of the following Python arithmetic expression:…

2023

Identify the correct output of the following Python arithmetic expression: 1+(2-3) * 4 * * 5//6

  1. A.

    -171

  2. B.

    172

  3. C.

    -170

  4. D.

    170

Attempted by 1651 students.

Show answer & explanation

Correct answer: C

Explanation: Stepwise evaluation:
(2 − 3) = −1
4 ** 5 = 1024
−1 × 1024 = −1024
−1024 // 6 = −171 (floor division moves toward negative infinity)
1 + (−171) = −170

Explore the full course: Rssb Senior Computer Instructor