1. Question: Which type in C# is an alias for System.String?

    A
    String

    B
    str

    C
    string

    D
    character

    Note: Not available
    1. Report
  2. Question: What is the size of a char in C#?

    A
    1 byte

    B
    2 bytes

    C
    4 bytes

    D
    8 bytes

    Note: Not available
    1. Report
  3. Question: What value is returned by Convert.ToBoolean(0) in C#?

    A
    true

    B
    false

    C
    null

    D
    exception

    Note: Not available
    1. Report
  4. Question: Which data type represents a 16-bit signed integer in C#?

    A
    byte

    B
    short

    C
    int

    D
    long

    Note: Not available
    1. Report
  5. Question: Which of the following is NOT a value type?

    A
    int

    B
    struct

    C
    enum

    D
    string

    Note: Not available
    1. Report
  6. Question: Which of the following is a valid way to declare an array in C#?

    A
    int[] arr = new int[5];

    B
    int arr = {5};

    C
    int arr = new int[5];

    D
    int[] arr = [5];

    Note: Not available
    1. Report
  7. Question: Which of the following is a reference type?

    A
    struct

    B
    enum

    C
    class

    D
    int

    Note: Not available
    1. Report
  8. Question: What is the default value of a decimal in C#?

    A
    0.0

    B
    0.0M

    C
    0

    D
    Null

    Note: Not available
    1. Report
  9. Question: Which type represents an unsigned 32-bit integer in C#?

    A
    byte

    B
    ushort

    C
    uint

    D
    ulong

    Note: Not available
    1. Report
  10. Question: What does float.NaN represent in C#?

    A
    Not an Integer

    B
    Null value

    C
    Infinity

    D
    Not a Number

    Note: Not available
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd