Programming - Operators
You Are Here :: Home > JAVA > Operators - General Questions
25.
In Java the bitwise and bit shift operators are used to manipulate the contents of variables at a bit level according to ____format.
A.
Unary
B.
binary
C.
both a and b
D.
none
Answer: Option B
Explanation:
In Java the bitwise and bit shift operators are used to manipulate the contents of variables at a bit level according to binary format.
26.
The __________ operator takes a single bit and inverts the level of that bit pattern and can be applied to any of the integral types.
A.
Unary complement
B.
bitwise complement
C.
unary bitwise complement ("~")
D.
all the above
Answer: Option C
Explanation:
The Unary bitwise complement("~ ") operator takes a single bit and inverts the level of that bit pattern and can be applied to any of the integral types.
27.
_________ operator performs the bitwise AND operation on each parallel pair of bits of two operands.
A.
logica AND
B.
Bitwise AND (&)
C.
logica OR
D.
none
Answer: Option B
Explanation:
Bitwise AND(&) operator performs the bitwise AND operation on each parallel pair of bits of two operands.
28.
___________________ operator performs the bitwise inclusive OR operation on each parallel pair of bits of two operands.
A.
Bitwise inclusive OR ( | )
B.
logica OR
C.
logica AND
D.
Bitwise AND (&)
Answer: Option A
Explanation:
Bitwise inclusive OR(|) operator performs the bitwise inclusive OR operation on each parallel pair of bits of two operands.
29.
___________ performs the exclusive or (XOR) operation
A.
Bitwise exclusive AND
B.
Conditional-AND operator (&&)
C.
Bitwise exclusive OR (^)
D.
all the above
Answer: Option C
Explanation:
Bitwise exclusive OR(^) performs the exclusive or (XOR) operation
30.
The _____________ has the registers including a fixed number of available bits for storing numerals.
A.
CPU
B.
key board
C.
monitor
D.
computer processor
Answer: Option D
Explanation:
The computer processor has the registers including a fixed number of available bits for storing numerals. So it is possible to "shift out" some bits of the register at one end, and "shift in" from the other end.
« prev
next »