A developer writes the following code: a = 3; b = 2; c = a / b; d = a // b; e = a % b. What are the values of c, d, e?
Correct values.
Why this answer
Option A is correct: 3/2 = 1.5, 3//2 = 1 (floor division), 3%2 = 1 (remainder). Option B has e=0 wrong. Option C has c=1 wrong.
Option D has d=1.5 wrong.