1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. Question: What is the output of 5 != 5?

    A
    true

    B
    false

    C
    null

    D
    error

    Note: The != operator checks if two values are not equal; here they are equal.
    1. Report
  9. Question: What does a++ do?

    A
    Increments a by 1 and returns the old value

    B
    Increments a by 1 and returns the new value

    C
    Decreases a by 1

    D
    None

    Note: The ++ operator can be used as a postfix operator to return the original value before increment.
    1. Report
  10. Question: What will 3 | 2 evaluate to?

    A
    1

    B
    2

    C
    3

    D
    5

    Note: The bitwise OR results in 5 (binary 11 | 10 = 11).
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd