1. Question: What does !true evaluate to?

    A
    true

    B
    false

    C
    null

    D
    Error

    Note: The ! operator negates the boolean value.
    1. Report
  2. Question: What does a &= b do?

    A
    Sets a to b

    B
    Performs bitwise AND and assigns the result to a

    C
    Adds a and b

    D
    None

    Note: This is a compound assignment operator.
    1. Report
  3. Question: What is the output of 10 / 3?

    A
    3

    B
    3.3333

    C
    4

    D
    2

    Note: Integer division truncates the decimal part.
    1. Report
  4. Question: Which operator is used for string concatenation?

    A
    +

    B
    &

    C
    |

    D
    None

    Note: The + operator is used to concatenate strings in C#.
    1. Report
  5. Question: What will the expression 5 > 2 && 3 > 1 evaluate to?

    A
    true

    B
    false

    C
    null

    D
    error

    Note: Both conditions are true, so the logical AND returns true.
    1. Report
  6. Question: What is the output of !(2 == 2)?

    A
    true

    B
    false

    C
    null

    D
    Error

    Note: The expression evaluates to true, and negating it gives false.
    1. Report
  7. Question: Which operator is used to perform a bitwise negation?

    A
    !

    B
    ~

    C
    ^

    D
    None

    Note: The ~ operator inverts all bits of the operand.
    1. Report
  8. Question: What does the => operator signify in C#?

    A
    Return statement

    B
    Lambda expression

    C
    Ternary operation

    D
    None

    Note: The => operator is used in defining lambda expressions.
    1. Report
  9. Question: What will the expression false || true evaluate to?

    A
    true

    B
    false

    C
    null

    D
    error

    Note: The logical OR evaluates to true if at least one operand is true.
    1. Report
  10. Question: Which of the following is NOT a bitwise operator?

    A
    &

    B
    +

    C
    |

    D
    ^

    Note: The + operator performs arithmetic addition, not bitwise operation.
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd