Quiz on Python Operators
Operators are the most important and most used forms in any language. We have plenty of operators in python and thus multiple concepts. With this quiz, we will focus on the concepts of the operators.
All the best!
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 logical Python operator?
CorrectIncorrect - Question 2 of 15
2. Question
Which of the following is a Bitwise operator in Python?
CorrectIncorrect - Question 3 of 15
3. Question
Which of the following is an identity operator in python?
CorrectIncorrect - Question 4 of 15
4. Question
Which of the following is an assignment operator?
CorrectIncorrect - Question 5 of 15
5. Question
Which of the following is a membership operator?
CorrectIncorrect - Question 6 of 15
6. Question
Find the output of the code given below?
# Code snippet Starta = 98
b = 789print(87-a&b*2)
# Code snippet Start
CorrectIncorrect - Question 7 of 15
7. Question
Find the output of the code snippet given below?
# Code snippet Start
s = ‘QuizOrbit’ val = []
for i in s:
val.append(i in s)
val = set(val)
print(val)
# Code snippet Start
CorrectIncorrect - Question 8 of 15
8. Question
Find the output of the code snippet given below?
# Code snippet Startval1 = ‘QuizOrbit’
val2 = ‘QUIZORBIT’print(len(val2)&len(val1))
# Code snippet Start
CorrectIncorrect - Question 9 of 15
9. Question
What will be the output of the code given below?
# Code snippet Starta = 89
b = 78
c = 65print((a*b+c-a/b+c)//700)
# Code snippet StartCorrectIncorrect - Question 10 of 15
10. Question
What will be the output of the following code?
# Code snippet Start
l = [200,78,89,147,52,74,89,23,41,69,78]
val = []
for i in range(30,210,17):
val.append(i in l)
print(val[-1])
# Code snippet Start
CorrectIncorrect - Question 11 of 15
11. Question
Find the output of the code given below?
# Code snippet Start
l = [200,78,89,147,52,74,89,23,41,69,78]
val = 0
for i in l:
val = (val^i-val|i)
print(val)
# Code snippet Start
CorrectIncorrect - Question 12 of 15
12. Question
What will be the output of the code snippet given below?
# Code snippet Starta = 89
b = 78
c = 65print(a^b>>c*2)
# Code snippet StartCorrectIncorrect - Question 13 of 15
13. Question
Find the output of the code given below?
# Code snippet Startval1 = ‘QuizOrbit’
val2 = ‘QUIZORBIT’print(val1 in val2)
# Code snippet Start
CorrectIncorrect - Question 14 of 15
14. Question
Find the output of the code given below?
# Code snippet Start
s = ‘QuizOrbit’
val = 0
for i in s:
val+=ord(i)&5
print(val^800)
# Code snippet Start
CorrectIncorrect - Question 15 of 15
15. Question
What will be the output of the code given below?
# Code snippet Starta = 98
b = 457print(987-a|b*2)
# Code snippet Start
CorrectIncorrect
Summary
We hope after the quiz you all might have gauged your understanding of the python operators. We recommend you clear all your concepts based on operators before proceeding to further topics to get a good understanding. Happy Learning!