Which of the following expressions involves coercion when evaluated in Python?
3.4 + 4.6
1.7 % 2
7.9 * 6.3
4.7 – 1.5
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 code?
Solution |
2
Discuss
|
The expression 2**2**3 is evaluates as: (2**2)**3.
Solution |
3
Discuss
|
What will be the output of the following Python code?
Solution |
4
Discuss
|
To find the decimal value of 1111, that is 15, we can use the function:
Solution |
5
Discuss
|
What will be the output of the following Python expression?
Solution |
6
Discuss
|
What will be the output of the following Python code snippet?
Solution |
7
Discuss
|
Which of the following expressions results in an error?
Solution |
8
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 |
9
Discuss
|
Which among the following list of operators has the highest precedence?
Solution |
10
Discuss
|
What will be the output of the following Python expression if x=15 and y=12?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved