1. 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
  2. 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
  3. 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
  4. Question: What does the operator >> do in C#?

    A
    Performs bitwise left shift

    B
    Performs bitwise right shift

    C
    Both

    D
    None

    Note: The >> operator shifts bits to the right, effectively dividing the number by 2 for each shift.
    1. Report
  5. Question: Which operator is used to perform a conditional check?

    A
    ? :

    B
    &&

    C
    ||

    D
    ==

    Note: The ternary operator ? : performs a conditional check and returns one of two values based on the condition.
    1. Report
  6. Question: What does a /= b do?

    A
    Divides a by b and assigns the result to a

    B
    Multiplies a by b and assigns the result to a

    C
    None

    D
    Both

    Note: This is a compound assignment operator.
    1. Report
  7. Question: What is the output of 1 + 2 * 3?

    A
    9

    B
    7

    C
    6

    D
    5

    Note: The multiplication operator has higher precedence than addition.
    1. Report
  8. Question: Which operator checks for null?

    A
    is

    B
    as

    C
    ??

    D
    All

    Note: is can check for null, and ?? provides a default value if null.
    1. Report
  9. Question: What is the result of 4 << 1?

    A
    2

    B
    4

    C
    8

    D
    16

    Note: The left shift operator shifts the bits to the left, multiplying by 2 for
    1. Report
  10. Question: What does a += b do?

    A
    Subtracts b from a

    B
    Multiplies a by b

    C
    Adds b to a

    D
    None

    Note: This is a compound assignment operator that combines addition and assignment.
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd