C MCQ Questions and Answers on Bitwise Operators

Image

Study C MCQ Questions and Answers on C Bitwise Operators. Bitwise operators deal with ones and zeroes. Easily attend technical job interviews with these Multiple Choice Questions.

Go through C Theory Notes on Bitwise Operators before studying these questions.



1) What are Nibble, Word and Byte in computer language.?
A) Byte = 8 bits, Word= 4 Bytes, Nibble= 8 Bytes
B) Byte = 8 bits, Word=2 Bytes, Nibble=4 Bytes
C) Byte = 8 bits, Word=12 bits, Nibble=32 Bits
D) Byte = 8 bits, Word=24 bits, Nibble=40 Bits
Answer [=]
Answer[=]
2) Choose correct representation of Decimal number in Binary.
A)
0   0000
1   0001
2   0010
3   0011
4   0100
B)
5   0101
6   0110
7   0111
8   1000
9   1001
C)
10  1010    A
11  1011    B
12  1100    C
13  1101    D  
14  1110    E
15  1111    F
D) All the above
Answer [=]
Answer[=]
3) What is the operator used to make 1's One's compliment.?
A) & Bitwise AND Operator
B) | Bitwise OR operator
C) ~ Bitwise Negate Operator
D) ^ Bitwise Exclusive OR
Answer [=]
Answer[=]
4) What is the result of 0110 & 1100.?
A) 1000
B) 0100
C) 0001
D) 1010
Answer [=]
Answer[=]
5) What is the output of Bitwise OR operation | on (0110 | 1100).?
A) 1110
B) 1100
C) 1000
D) 1010
Answer [=]
Answer[=]
6) What is the output of Exclusive OR ^ operator on 0110^1000.?
A) 1000
B) 1110
C) 0011
D) 0001
Answer [=]
Answer[=]
7) What is the output of Left Shift Operator << on (00011000<<2).?
A) 01100000
B) 11000000
C) 00000110
D) 00000011
Answer [=]
Answer[=]


 

8) What is the result of Right Shift Operator >> on (00110000>>2).?
A) 11000000
B) 00001100
C) 01100000
D) 11001111
Answer [=]
Answer[=]
9) Choose correct statement about Left Shift Operator << .?
A) Left shift operator shifts individual bits on the left side
B) When shifting left side, overflow bits are ignored.
C) Zeroes are filled on the right side
D) All the above
Answer [=]
Answer[=]
10) Choose a correct statement about Right Shift Operator >> .?
A) Right shift operator shift individual bits on to the right side.
B) When shifting bits right side, overflow bits on the right are ignored or truncated.
C) Zeroes are filled on the left side.
D) All the above
Answer [=]
Answer[=]
11) What is a Single Operand Operator below.?
A) &
B) |
C) ^
D) ~
Answer [=]
Answer[=]
12) What is the Bitwise operator used to set a particular bit value to 1.?
A) & AND
B) | OR
C) ^ Exclusive OR
D) ~ Operator
Answer [=]
Answer[=]
13) What is the Bitwise operator used set a particular bit to Zero 0.?
A) & Operator
B) | OR operator
C) ^ Exclusive Operator
D) ~ TILDE Operator
Answer [=]
Answer[=]
14) Which is Bit Toggling operator below.?
A) & AND operator
B) | OR operator
C) ^ Exclusive Operator
D) ~ TILDE operator
Answer [=]
Answer[=]


 

15) Which is the format specifier used to prefix 0x and print a number in hexadecimal notation.?
A) %x
B) %0x
C) %#x
D) %hx
Answer [=]
Answer[=]
16) Left Shift operation is equivalent to.?
A) Division by 2
B) Multiplying by 2
C) Adding 2
D) Subtracting 2
Answer [=]
Answer[=]
17) Right Shift operation >> is equivalent to .?
A) Multiplying by 2
B) Division by 2
C) Adding 2
D) Subtracting 2
Answer [=]
Answer[=]
18) What is the minimum and maximum values in Octal Number System.?
A) 1 to 8
B) 0 to 7
C) 2 to 9
D) None of the above
Answer [=]
Answer[=]
19) What number system is not understood by C language compiler directly.?
A) Decimal
B) Octal
C) Binary
D) Hex Decimal
Answer [=]
Answer[=]
20) Choose a correct statement about C Bitwise operators.?
A) 0^number = number
B) 1 | number = number
C) 0 & number = 0
D) All the above
Answer [=]
Answer[=]


Like or Share

Show some care. Like or Subscribe. [FB]...[Youtube]

C MCQ App by ExamTray 

Android APP

Java MCQ App by ExamTray 

Android APP
ALL MCQ App by ExamTray Android APP

Ad

 

Some good C Books

Book Price
1. C: The Complete Reference  Check Price
2. Let Us C Check Price
3. Programming in ANSI C Check Price
4. The C Programming Language Check Price

We may get some affiliate commission for the above purchases.