Which of the following expressions results in an error?
int(‘1011’)
int(1011,2)
int(‘1011’,23)
int(1011)
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
| # | Quiz |
|---|---|
|
1
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 |
|
2
Discuss
|
What will be the output of the following Python code snippet?
Solution |
|
3
Discuss
|
What will be the output of the following Python code if a=10 and b =20?
Solution |
|
4
Discuss
|
What will be the output of the following Python expression?
Solution |
|
5
Discuss
|
What will be the value of the following Python expression?
Solution |
|
6
Discuss
|
What will be the output of the following Python code snippet?
Solution |
|
7
Discuss
|
Which among the following list of operators has the highest precedence?
Solution |
|
8
Discuss
|
What will be the output of the following Python code snippet if x=1?
Solution |
|
9
Discuss
|
What will be the output of the following Python code?
Solution |
|
10
Discuss
|
Which of the following expressions involves coercion when evaluated in Python?
Solution |
| # | Quiz |
Copyright © 2020 Inovatik - All rights reserved