Top 1000+ Solved Problem Solving and Python Programming MCQ Questions Answer
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
Q. >>>print (r"\nhello")
a. a new line and hello
b. \\nhello
c. the letter r and then hello
d. error
Q. >>>print('new' 'line')
a. error
b. output equivalent to print ‘new\\nline’
c. newline
d. new line