MCQ Answer

Which one of these is floor division?

Which one of these is floor division?

इनमें से कौन सा फ्लोर डिवीज़न है?
Topic : Operators Expressions and Python Statements

A. /

B. //

C. %

D. None of the mentioned उल्लेखित कोई नहीं




Correct Answer is :

B. //



Explanation
When both of the operands are integer then python chops out the fraction part and gives you the round off value, to get the accurate answer use floor division. This is floor division. For ex, 5/2 = 2.5 but both of the operands are integer so answer of this expression in python is 2. To get the 2.5 answer, use floor division.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz