Quiz on Python Bitwise Operator
FREE Online Courses: Knowledge Awaits – Click for Free Access!
Quiz Summary
0 of 15 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 15 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 15
1. Question
Which of the following is not a bitwise operator?
CorrectIncorrect -
Question 2 of 15
2. Question
bin(6.5)
CorrectIncorrect -
Question 3 of 15
3. Question
Which of the following is the left shift operator?
CorrectIncorrect -
Question 4 of 15
4. Question
Which of the following operators gives 0 as the output when both the inputs are the same?
CorrectIncorrect -
Question 5 of 15
5. Question
Which of the following gives an error?
CorrectIncorrect -
Question 6 of 15
6. Question
Which of the following codes give the output as ‘0b1011’?
CorrectIncorrect -
Question 7 of 15
7. Question
- Which of the following is an operator that works only on one operand?
CorrectIncorrect -
Question 8 of 15
8. Question
Find the output of the following code snippet.
~101
CorrectIncorrect -
Question 9 of 15
9. Question
What does the following code output?
a=4
print(a>>3)
CorrectIncorrect -
Question 10 of 15
10. Question
- Which of the following gives 1 as an output?
CorrectIncorrect -
Question 11 of 15
11. Question
Find the output of the following code snippet.
x=5
print(-(~x))
CorrectIncorrect -
Question 12 of 15
12. Question
Which of the following is equivalent to the output of the following code ?
a=4
b=6
print(a ^b)
CorrectIncorrect -
Question 13 of 15
13. Question
Find the output of the following code snippet.
n1=2
n2=3
print(bin(n1) & bin(n2))
CorrectIncorrect -
Question 14 of 15
14. Question
Find the output of the following code snippet.
0b111>>2
CorrectIncorrect -
Question 15 of 15
15. Question
Which of the following give a negative number as an output?
CorrectIncorrect