logo

CuriousTab

CuriousTab

Discussion


Home C Programming Bitwise Operators Comments

  • Question
  • Bitwise & can be used to check if a bit in number is set or not.


  • Options
  • A. True
  • B. False

  • Correct Answer
  • True 


  • Bitwise Operators problems


    Search Results


    • 1. In the statement expression1 >> expression2. if expression1 is a signed integer with its leftmost bit set to 1 then on right shifting it the result of the statement will vary from computer to computer

    • Options
    • A. True
    • B. False
    • Discuss
    • 2. Bitwise & can be used to check if more than one bit in a number is on.

    • Options
    • A. True
    • B. False
    • Discuss
    • 3. Bitwise & can be used to divide a number by powers of 2

    • Options
    • A. True
    • B. False
    • Discuss
    • 4. Left shifting a number by 1 is always equivalent to multiplying it by 2.

    • Options
    • A. True
    • B. False
    • Discuss
    • 5. Bitwise & and | are unary operators

    • Options
    • A. True
    • B. False
    • Discuss
    • 6. Left shifting an unsigned int or char by 1 is always equivalent to multiplying it by 2.

    • Options
    • A. True
    • B. False
    • Discuss
    • 7. On left shifting, the bits from the left are rotated and brought to the right and accommodated where there is empty space on the right?

    • Options
    • A. True
    • B. False
    • Discuss
    • 8. Bitwise can be used to perform addition and subtraction.

    • Options
    • A. Yes
    • B. No
    • Discuss
    • 9. Bitwise | can be used to set multiple bits in number.

    • Options
    • A. Yes
    • B. No
    • Discuss
    • 10. Bitwise & can be used in conjunction with ~ operator to turn off 1 or more bits in a number.

    • Options
    • A. Yes
    • B. No
    • Discuss


    Comments

    There are no comments.

Enter a new Comment