C Programming > Bitwise Operators

C Programming Questions and Answers

C Programming > Bitwise Operators

Postby abdulsaboor » Thu Oct 02, 2014 11:29 am

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.
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
User avatar
abdulsaboor
ADMIN
ADMIN
 
Posts: 2004
Joined: Fri Sep 28, 2007 3:42 am
Location: vehari-punjab-pakistan

Re: C Programming > Bitwise Operators

Postby abdulsaboor » Thu Oct 02, 2014 11:30 am

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
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
User avatar
abdulsaboor
ADMIN
ADMIN
 
Posts: 2004
Joined: Fri Sep 28, 2007 3:42 am
Location: vehari-punjab-pakistan

Re: C Programming > Bitwise Operators

Postby abdulsaboor » Thu Oct 02, 2014 11:32 am

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
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
User avatar
abdulsaboor
ADMIN
ADMIN
 
Posts: 2004
Joined: Fri Sep 28, 2007 3:42 am
Location: vehari-punjab-pakistan


Return to C Programming

Who is online

Users browsing this forum: No registered users and 1 guest