1. Question: What is the purpose of the object type in C#?

    A
    To represent all primitive types

    B
    To be the base class of all types

    C
    To create complex types only

    D
    None

    Note: Not available
    1. Report
  2. Question: What will be the result of 5/2 if both operands are integers?

    A
    2.5

    B
    2

    C
    2.0

    D
    Compilation error

    Note: Not available
    1. Report
  3. Question: Which of the following is a boxing operation in C#?

    A
    int i = 123; object o = i;

    B
    int i = (int)o;

    C
    float f = 12.5f;

    D
    string s = "text";

    Note: Not available
    1. Report
  4. Question: Which of the following data types does not support precision?

    A
    decimal

    B
    int

    C
    float

    D
    double

    Note: Not available
    1. Report
  5. Question: What is the smallest possible value for decimal in C#?

    A
    -2147483648

    B
    -1.0E-28M

    C
    0

    D
    -79228162514264337593543950335

    Note: Not available
    1. Report
  6. Question: Which data type would you use for a value of 3.402823E+38?

    A
    float

    B
    decimal

    C
    double

    D
    int

    Note: Not available
    1. Report
  7. Question: What is string in C#?

    A
    Primitive type

    B
    Reference type

    C
    Value type

    D
    Static type

    Note: Not available
    1. Report
  8. Question: Which data type is not zero by default?

    A
    float

    B
    int

    C
    bool

    D
    decimal

    Note: Not available
    1. Report
  9. Question: Which of these operators checks if a variable is of a specific type?

    A
    typeof

    B
    is

    C
    as

    D
    cast

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