Home / Programming MCQs / C# MCQs / Question

M

Mr. Dubey • 51.17K Points
Coach

Q. Which Conversion function of ‘Convert.TOInt32()’ and ‘Int32.Parse()’ is efficient?
i) Int32.Parse() is only used for strings and throws argument exception for null string
ii) Convert.Int32() used for data types and returns directly '0' for null string

(A) ii
(B) Both i, ii
(C) i
(D) None of the mentioned

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.