Arrange the following data type in order of increasing magnitude sbyte, short, long, int.
A. long < short < int < sbyte
B. sbyte < short < int < long
C. short < sbyte < int < long
D. short < int < sbyte < long
Answer: Option B
A. long < short < int < sbyte
B. sbyte < short < int < long
C. short < sbyte < int < long
D. short < int < sbyte < long
Answer: Option B
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