What will be the output of the following Python code?
class Truth:
pass
x=Truth()
bool(x)
error
false
true
pass
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
Which of the following expressions can be used to multiply a given number ‘a’ by 4?
Solution |
2
Discuss
|
What will be the value of x in the following Python expression, if the result of that expression is 2?
Solution |
3
Discuss
|
What will be the value of X in the following Python expression?
Solution |
4
Discuss
|
Which of the following Boolean expressions is not logically equivalent to the other three?
Solution |
5
Discuss
|
What will be the output of the following Python expression?
Solution |
6
Discuss
|
Any odd number on being AND-ed with ________ always gives 1. Hint: Any even number on being AND-ed with this value always gives 0.
Solution |
7
Discuss
|
What will be the output of the following Python code if a=10 and b =20?
Solution |
8
Discuss
|
What will be the output of the following Python code snippet?
Solution |
9
Discuss
|
What will be the value of the following Python expression?
Solution |
10
Discuss
|
The expression 2**2**3 is evaluates as: (2**2)**3.
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved