NIELIT O Level Exam

Which of the following expressions is an example of type conversion?

Which of the following expressions is an example of type conversion?

निम्न में से कौन सा एक्सप्रेशन्स कन्वर्श़न प्रकार का एक उदाहरण है?

A. 4.0 + float(3)

B. 5.3 + 6.3

C. 5.0 + 3

D. 3 + 7




Correct Answer is :

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.
Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad