NIMCET 2025 Paper

Section: Computer Awareness
© examsiri.com
Question : 100 of 120
 
Marks: +1, -0
Given an unsigned 32-bit integer x, which of the following C∕C++ expressions correctly toggles m bits starting from position p (with the least significant bit at position 0 )?
Assume:
- x is the input integer
- p is the starting position of the bit range (0-based, LSB at position 0)
- m is the number of bits to toggle
- No overflow or invalid input occurs Which of the following correctly toggles m bits of x starting from position p ?
Go to Question: