C Programming > Bitwise Operators
1.
In which numbering system can the binary number 1011011111000101 be easily converted to?
A. Decimal system
B. Hexadecimal system
C. Octal system
D. No need to convert
Answer: Option B
Explanation:
Hexadecimal system is better, because each 4-digit binary represents one Hexadecimal digit.
C Programming > Bitwise Operators
- abdulsaboor
- ADMIN
- Posts: 2004
- Joined: Fri Sep 28, 2007 3:42 am
- Location: vehari-punjab-pakistan
- Contact:
C Programming > Bitwise Operators
DR ABDUL SABOOR
PHD Scholar at Superior University Lahore- Pakistan
MS Business Administration (HRM)
BS Business Administration (Marketing)
Member Editorial Board Science Publishing Group USA
Member Editorial Board International Journal of Marketing Studies
Cell=0308-6837987
Pakistan
PHD Scholar at Superior University Lahore- Pakistan
MS Business Administration (HRM)
BS Business Administration (Marketing)
Member Editorial Board Science Publishing Group USA
Member Editorial Board International Journal of Marketing Studies
Cell=0308-6837987
Pakistan
- abdulsaboor
- ADMIN
- Posts: 2004
- Joined: Fri Sep 28, 2007 3:42 am
- Location: vehari-punjab-pakistan
- Contact:
Re: C Programming > Bitwise Operators
2.
Which bitwise operator is suitable for turning off a particular bit in a number?
A. && operator
B. & operator
C. || operator
D. ! operator
Answer: Option B
Which bitwise operator is suitable for turning off a particular bit in a number?
A. && operator
B. & operator
C. || operator
D. ! operator
Answer: Option B
DR ABDUL SABOOR
PHD Scholar at Superior University Lahore- Pakistan
MS Business Administration (HRM)
BS Business Administration (Marketing)
Member Editorial Board Science Publishing Group USA
Member Editorial Board International Journal of Marketing Studies
Cell=0308-6837987
Pakistan
PHD Scholar at Superior University Lahore- Pakistan
MS Business Administration (HRM)
BS Business Administration (Marketing)
Member Editorial Board Science Publishing Group USA
Member Editorial Board International Journal of Marketing Studies
Cell=0308-6837987
Pakistan
- abdulsaboor
- ADMIN
- Posts: 2004
- Joined: Fri Sep 28, 2007 3:42 am
- Location: vehari-punjab-pakistan
- Contact:
Re: C Programming > Bitwise Operators
3.
Which bitwise operator is suitable for turning on a particular bit in a number?
A. && operator
B. & operator
C. || operator
D. | operator
Answer: Option D
4.
Which bitwise operator is suitable for checking whether a particular bit is on or off?
A. && operator
B. & operator
C. || operator
D. ! operator
Answer: Option B
Which bitwise operator is suitable for turning on a particular bit in a number?
A. && operator
B. & operator
C. || operator
D. | operator
Answer: Option D
4.
Which bitwise operator is suitable for checking whether a particular bit is on or off?
A. && operator
B. & operator
C. || operator
D. ! operator
Answer: Option B
DR ABDUL SABOOR
PHD Scholar at Superior University Lahore- Pakistan
MS Business Administration (HRM)
BS Business Administration (Marketing)
Member Editorial Board Science Publishing Group USA
Member Editorial Board International Journal of Marketing Studies
Cell=0308-6837987
Pakistan
PHD Scholar at Superior University Lahore- Pakistan
MS Business Administration (HRM)
BS Business Administration (Marketing)
Member Editorial Board Science Publishing Group USA
Member Editorial Board International Journal of Marketing Studies
Cell=0308-6837987
Pakistan