Q. Which of the following expressions results in an error?

  • (A) int(1011)
  • (B) int(‘1011’,23)
  • (C) int(1011,2)
  • (D) int(‘1011’)
πŸ’¬ Discuss
βœ… Correct 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.

Explanation by: Mr. Dubey
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.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
1040
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate