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
Answer: Option A
Related Questions on Basic Syntax and Data Types in C Sharp
What is the correct syntax to declare a variable in C#?
A. num = int;
B. var num;
C. num int;
D. int num;
What is the purpose of the 'var' keyword in C#?
A. Declares a constant
B. Converts a variable to string
C. Implicitly declares a variable
D. Defines a method

Join The Discussion