1. Question: What does 5 > 3 && 2 < 4 evaluate to?

    A
    true

    B
    false

    C
    null

    D
    error

    Note: Both conditions are true, making the result true.
    1. Report
  2. Question: Which operator checks if two operands are not equal?

    A
    !=

    B
    ==

    C
    =!=

    D
    <>

    Note: The != operator checks for inequality.
    1. Report
  3. Question: What does b >>= 1 do?

    A
    Divides b by 2 and assigns the result to b

    B
    Multiplies b by 2 and assigns the result to b

    C
    None

    D
    Both

    Note: The right shift operator divides the value by 2 for each shift.
    1. Report
  4. Question: What is the result of 3 + 4 * 2?

    A
    14

    B
    10

    C
    11

    D
    9

    Note: The multiplication operator has higher precedence than addition.
    1. Report
  5. Question: What does a |= b do?

    A
    Adds b to a

    B
    Performs bitwise OR and assigns the result to a

    C
    Sets a to b

    D
    None

    Note: This is a compound assignment operator that combines bitwise OR with assignment.
    1. Report
  6. Question: What will 3 | 1 evaluate to?

    A
    1

    B
    2

    C
    3

    D
    4

    Note: The bitwise OR results in 3 (binary 11 | 01 = 11).
    1. Report
  7. Question: What does the ^ operator do?

    A
    Bitwise OR

    B
    Bitwise XOR

    C
    Logical AND

    D
    None

    Note: The ^ operator returns 1 for differing bits.
    1. Report
  8. Question: Which of the following is NOT an arithmetic operator?

    A
    +

    B
    -

    C
    *

    D
    &

    Note: The & operator is a bitwise operator, not an arithmetic operator.
    1. Report
  9. Question: What is the output of 10 / 2 * 3?

    A
    15

    B
    5

    C
    20

    D
    30

    Note: The operations are performed left to right; first division, then multiplication.
    1. Report
  10. Question: Which operator is used for bitwise left shift?

    A
    <<

    B
    >>

    C
    |

    D
    &

    Note: The << operator shifts bits to the left.
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd