logo

CuriousTab

CuriousTab

Discussion


Home C Programming Bitwise Operators Comments

  • Question
  • Bitwise | can be used to set multiple bits in number.


  • Options
  • A. Yes
  • B. No

  • Correct Answer
  • Yes 


  • Bitwise Operators problems


    Search Results


    • 1. Bitwise can be used to perform addition and subtraction.

    • Options
    • A. Yes
    • B. No
    • Discuss
    • 2. 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
    • 3. Left shifting an unsigned int or char by 1 is always equivalent to multiplying it by 2.

    • Options
    • A. True
    • B. False
    • Discuss
    • 4. Bitwise & can be used to check if a bit in number is set or not.

    • Options
    • A. True
    • B. False
    • Discuss
    • 5. 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
    • 6. Bitwise & can be used in conjunction with ~ operator to turn off 1 or more bits in a number.

    • Options
    • A. Yes
    • B. No
    • Discuss
    • 7. Bitwise | can be used to multiply a number by powers of 2.

    • Options
    • A. Yes
    • B. No
    • Discuss
    • 8. Bitwise can be used to reverse a sign of a number.

    • Options
    • A. Yes
    • B. No
    • Discuss
    • 9. Bitwise can be used to generate a random number.

    • Options
    • A. Yes
    • B. No
    • Discuss
    • 10. Bitwise | can be used to set a bit in number.

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


    Comments

    There are no comments.

Enter a new Comment