What will be the output of the following Python code if a=10 and b =20?
a=10
b=20
a=a^b
b=a^b
a=a^b
print(a,b)
20 20
20 10
10 10
10 20
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
What will be the output of the following Python expression?
Solution |
2
Discuss
|
Which of the following represents the bitwise XOR operator?
Solution |
3
Discuss
|
What will be the output of the following Python code?
Solution |
4
Discuss
|
Which among the following list of operators has the highest precedence?
Solution |
5
Discuss
|
Which of the following expressions results in an error?
Solution |
6
Discuss
|
What will be the output of the following Python expression?
Solution |
7
Discuss
|
What will be the value of the following Python expression?
Solution |
8
Discuss
|
What will be the output of the following Python expression?
Solution |
9
Discuss
|
What will be the value of the following Python expression?
Solution |
10
Discuss
|
To find the decimal value of 1111, that is 15, we can use the function:
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved