What will be the output of the following Python code?
if (9 < 0) and (0 < -9):
print("hello")
elif (9 > 0) or False:
print("good")
else:
print("bad")
bad
good
hello
error
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 snippet if x=1?
Solution |
4
Discuss
|
What will be the output of the following Python code?
Solution |
5
Discuss
|
What will be the output of the following Python code snippet?
Solution |
6
Discuss
|
What will be the value of x in the following Python expression, if the result of that expression is 2?
Solution |
7
Discuss
|
What will be the output of the following Python code snippet?
Solution |
8
Discuss
|
Which of the following expressions is an example of type conversion?
Solution |
9
Discuss
|
Which of the following expressions involves coercion when evaluated in Python?
Solution |
10
Discuss
|
What will be the output of the following Python code if a=10 and b =20?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved