Professional Documents
Culture Documents
Exam 4
Exam 4
int a = 5;
int b = 10;
int c;
Console.ReadLine();
*
1 point
a) 11, 10
b) 16, 10
c) 16, 11
d) 15, 11
Arrange the following data type in order of increasing magnitude sbyte, short,
long, int.
*
1 point
a) long < short < int < sbyte
b) sbyte < short < int < long
c) short < sbyte < int < long
d) short < int < sbyte < long
What will be the error in the following C# code?
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
*
1 point
a) ii
b) Both i, ii
c) i
d) None of the mentioned
For the following C# code select the relevant solution for conversion of data
type.