To find the decimal value of 1111, that is 15, we can use the function:
int(‘1111’,2)
int(1111,2)
int(‘1111’,10)
int(1111,10)
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
Which of the following expressions involves coercion when evaluated in Python?
Solution |
2
Discuss
|
Which of the following expressions results in an error?
Solution |
3
Discuss
|
What will be the output of the following Python code snippet?
Solution |
4
Discuss
|
What will be the value of x in the following Python expression, if the result of that expression is 2?
Solution |
5
Discuss
|
Which of the following expressions is an example of type conversion?
Solution |
6
Discuss
|
What will be the value of the following Python expression?
Solution |
7
Discuss
|
What will be the output of the following Python expression?
Solution |
8
Discuss
|
What will be the output of the following Python code?
Solution |
9
Discuss
|
Which of the following represents the bitwise XOR operator?
Solution |
10
Discuss
|
What will be the value of X in the following Python expression?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved