Qus : Which of the following expressions is an example of type conversion?
Qusनिम्न में से कौन सा एक्सप्रेशन्स कन्वर्श़न प्रकार का एक उदाहरण है?
A. 4.0 + float(3) B. 5.3 + 6.3
C. 5.0 + 3 D. 3 + 7
Solution
A. 4.0 + float(3)
Explanation
Type conversion is nothing but explicit conversion of operands to a specific type. Options 5.3 + 6.3 and 5.0 + 3 are examples of implicit conversion whereas option 4.0 + float(3) is an example of explicit conversion or type conversion.