Top 1000+ Solved Problem Solving and Python Programming MCQ Questions Answer
Q. Which of the following expressions results in an error?
a. int(1011)
b. int(‘1011’,23)
c. int(1011,2)
d. int(‘1011’)
Q. Bitwise gives 1 if either of the bits is 1 and 0 when both of the bits are 1.
a. or
b. and
c. xor
d. not
Q. Which of the following expressions can be used to multiply a given number ‘a’ by 4?
a. a<<2
b. a<<4
c. a>>2
d. a>>4
Q. R operator. Hence the output of the code shown above is: 20 10.
a. 1011011
b. 11010100
c. 11101011
d. 10110011