Question Detail

COS 102 lecture 4 Objective Question

Question

What arithmetic operation does the // operator perform in Python?
Options
A Exponentiation
B Modulus
C Floor Division
Correct Answer
D Standard Division
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 42, under 'Arithmetic Operators', states that // performs 'Floor Division'.

Hint

Consult the 'Arithmetic Operators' table and find the `//` symbol.

Question Info