McqMate
| Q. |
The function divmod(a,b), where both ‘a’ and ‘b’ are integers is evaluated as: |
| A. | (a%b, a//b) |
| B. | (a//b, a%b) |
| C. | (a//b, a*b) |
| D. | (a/b, a%b) |
| Answer» B. (a//b, a%b) | |
| Explanation: the function divmod(a,b) is evaluated as a//b, a%b, if both ‘a’ and ‘b’ are integers. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet