Which of the following is used with bit manipulation?
- ASigned integer
- BUn-signed integer
- CSigned double
- DUn-signed double
Bitwise operations are applied to integers, typically unsigned ones.
MCQs, short and long questions from lecture 21.Lecture 21 ki MCQs, short aur long sawal.
2 MCQs · 2 short questions · 2 MCQs from past papers2 MCQs · 2 short sawal · 2 MCQs past papers se
Which of the following is used with bit manipulation?
Bitwise operations are applied to integers, typically unsigned ones.
If most significant bit of un-signed number is 1 then it represents a positive number.
An unsigned number has no sign bit, so its value is never negative.
No MCQs match this filter.Is filter mein koi MCQ nahi.
Which bit of the number is used as a sign bit?
The most significant (leftmost) bit is the sign bit: 0 means the number is positive and 1 means it is negative (for signed types).
Which bitwise operator returns true if both bits are different and returns false if both bits are the same?
The bitwise exclusive OR (XOR) operator ^ : 1^0 = 1, 0^1 = 1, 0^0 = 0, 1^1 = 0.
No long questions added yet.Abhi koi long sawal shamil nahi.