Question Detail

COS 102 lecture 4 Objective Question

Question

What does the arithmetic operator '//' represent 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, in the 'Arithmetic Operators' table, specifies that '//' stands for 'Floor Division', which is 'division of operands where the solution is a quotient left after removing decimal numbers'.

Hint

Consult the 'Arithmetic Operators' table on page 42 to identify the symbol and its corresponding operation.

Question Info