McqMate
| Q. |
Which of the following expressions results in an error? |
| A. | int(1011) |
| B. | int(‘1011’,23) |
| C. | int(1011,2) |
| D. | int(‘1011’) |
| Answer» C. int(1011,2) | |
| Explanation: the expression int(1011,2) results in an error. had we written this expression as int(‘1011’,2), then there would not be an error. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet