Shortcut Navigation:

Datatypes Quiz #1

Which of the following statements are correct about data types?  
  1. If the integer literal exceeds the range of byte, a compilation error will occur.
  2. We cannot implicitly convert non-literal numeric types of larger storage size to byte.
  3. Byte cannot be implicitly converted to float.
  4. A char can be implicitly converted to only int data type.
  5. We can cast the integral character codes. 

Which of the following is an 8-byte Integer?

Which of the following is NOT an Integer?

Which of the following statements is correct?

Which of the following are value types?  
  1. Integer
  2. Array
  3. Single
  4. String
  5. Long

Which of the following does not store a sign?

What is the size of a Decimal?

What will be the output of the following code snippet when it is executed?   int x = 1;float y = 1.1f;short z = 1;Console.Write.Line((float) x + y * z - (x += (short) y));

Which of the following statements is correct about the C#.NET code snippet given below? short s1 = 20;short s2 = 400;int a;a = s1 * s2;

Which of the following is the correct size of a Decimal datatype?