![]() |
VOOZH | about |
Question 1
Which bitwise operator is used to swap two numbers?
Left Shift(<<)
Right shift(>>)
Bitwise OR |
Bitwise XOR ^
Question 2
What is the output of the below code for input num = 15?
15
5
4
3
Question 3
Which is the format specifier used to prefix 0x and print a number in hexadecimal notation.?
%O
%#
%x
%#x
Question 4
Which is the Bit Toggling operator below.?
Bitwise OR operator( | )
Bitwise XOR Operator (^)
Bitwise AND Operator(&)
TILDE operator(~)
Question 5
What is the output of the below expression?
000111 | 01010
0000000
00
010111
None
Question 6
Bitwise & can be used in conjunction with ~ operator to turn off 1 or more bits in a number.
True
False
Question 7
If we have to add two numbers without having any carry, which bitwise operator should be used?
Bitwise OR |
Bitwise AND &
Bitwise NOT ~
None
Question 8
Predict the output:
-2
-3
Error
-1
Question 9
What is the output of the below code?
Yes
No
Error
None
Question 10
What will the below code do?
divide num by pos.
Multiply num by pos.
Add num with pos.
set the given position (pos) of a number (num).
There are 30 questions to complete.