PCEP 30 02 PCEP Certified Entry Level Python Programmer · Free Practice Question Easy
Question 22
Which expression would evaluate to 3?
-
A
print(9.5//3) -
B
print(23%4) -
C
print(9.5/3) -
D
print(3**0)
Reveal correct answer
Correct answer: B
Explanation
% operator returns the remainder which is 3 here.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
