Question
a.
int(1111,10)
b.
int(‘1111’,10)
c.
int(1111,2)
d.
int(‘1111’,2)
Posted under Python
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. To find the decimal value of 1111, that is 15, we can use the function:
Similar Questions
Discover Related MCQs
Q. What is the result of the expression if x=15 and y=12:
x & y
View solution
Q. Which of the following expressions results in an error?
View solution
Q. Which of the following represents the bitwise XOR operator?
View solution
Q. What is the value of this expression?
bin(0x8)
View solution
Q. What is the result of the expression:
0x35 | 0x75
View solution
Q. The one’s complement of 110010101 is:
View solution
Q. Bitwise _________ gives 1 if either of the bits is 1 and 0 when both of the bits are 1.
View solution
Q. The result of the expression shown below is:
4^12
View solution
Q. 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.
View solution
Q. What is the value of this expression:
bin(10-2)+bin(12^4)
View solution
Q. Which of the following expressions can be used to multiply a given number ‘a’ by 4?
View solution
Q. What is the two’s complement of -44?
View solution
Q. What is the value of the expression:
~100?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Python? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!