1. Question: Which data type should be used to store a value of true or false in C#?

    A
    int

    B
    boolean

    C
    bool

    D
    byte

    Note: Not available
    1. Report
  2. Question: Which of the following types is NOT a reference type in C#?

    A
    object

    B
    int

    C
    string

    D
    dynamic

    Note: Not available
    1. Report
  3. Question: What is the default value of a bool variable in C#?

    A
    true

    B
    false

    C
    0

    D
    null

    Note: Not available
    1. Report
  4. Question: Which keyword is used to declare a variable that can store any data type in C#?

    A
    object

    B
    var

    C
    dynamic

    D
    any

    Note: Not available
    1. Report
  5. Question: Which of the following is NOT a primitive data type in C#?

    A
    double

    B
    decimal

    C
    string

    D
    array

    Note: Not available
    1. Report
  6. Question: What is the size of the double data type in C#?

    A
    4 bytes

    B
    8 bytes

    C
    16 bytes

    D
    32 bytes

    Note: Not available
    1. Report
  7. Question: What is the maximum value of a byte data type in C#?

    A
    255

    B
    256

    C
    1024

    D
    2048

    Note: Not available
    1. Report
  8. Question: Which data type would you use to store a single Unicode character in C#?

    A
    string

    B
    char

    C
    byte

    D
    int

    Note: Not available
    1. Report
  9. Question: Which keyword is used to declare a variable whose value can only be assigned in the constructor?

    A
    const

    B
    static

    C
    readonly

    D
    final

    Note: Not available
    1. Report
  10. Question: What is the purpose of the readonly keyword in C#?

    A
    To make a variable accessible only in read mode

    B
    To prevent modifying the variable after initialization

    C
    To make the variable accessible in all derived classes

    D
    To declare a variable as a constant

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