๐Ÿงช Python MCQ Quiz Hub

Python MCQS - Operators

Choose a topic to test your knowledge and improve your Python skills

print(4**2) will show ?





โœ… Correct Answer: 2

What is the use of the ** operator ?





โœ… Correct Answer: 4

print(4//2) will show ?





โœ… Correct Answer: 3

print(4++2) will show





โœ… Correct Answer: 1

print(3--5) will give





โœ… Correct Answer: 3

What is the use of the % operator ?





โœ… Correct Answer: 2

What will be output of the following program ? print(3%4)





โœ… Correct Answer: 1

What will it show ?, print(64%2)





โœ… Correct Answer: 2

What will the output of the following program, print(//)





โœ… Correct Answer: 4

From which of the following? , the output will be 32





โœ… Correct Answer: 3

print(9//2)





โœ… Correct Answer: 1

print(4<<2)





โœ… Correct Answer: 4

print(2<<1)





โœ… Correct Answer: 4

print(2>>3)





โœ… Correct Answer: 3

print(100>>4)





โœ… Correct Answer: 2

<< operator is replace by





โœ… Correct Answer: 1

>> operator is replace by





โœ… Correct Answer: 1

or() is replaced by which of the following operator ?





โœ… Correct Answer: 3

Which type of behavior is shown by the | operator ?





โœ… Correct Answer: 2

AND is shown by which of the operator ?





โœ… Correct Answer: 4

& operator is show the





โœ… Correct Answer: 1

Which of the following is not valid operator in the python





โœ… Correct Answer: 3

Which of the following operator is valid in the python ?





โœ… Correct Answer: 4

print(4*5)





โœ… Correct Answer: 4

print(100 & 4)





โœ… Correct Answer: 2

print(100|4)





โœ… Correct Answer: 1

print(50&4)





โœ… Correct Answer: 4

print(50&&4)





โœ… Correct Answer: 4

print(1000||300)





โœ… Correct Answer: 4

print(1000&300)





โœ… Correct Answer: 3

print(1000|300)





โœ… Correct Answer: 2

print(1000|300&234)





โœ… Correct Answer: 1

print(1000|300|234)





โœ… Correct Answer: 3

print(1000&300&234)





โœ… Correct Answer: 3

print(121--1000&300&234%23++1//4)





โœ… Correct Answer: 2

print(121--1000&300&234++1//4)





โœ… Correct Answer: 3

Which of the following is not correct ?





โœ… Correct Answer: 4

Which type of operator is not supported in the python programming language ?





โœ… Correct Answer: 4

print(1000<300)





โœ… Correct Answer: 4

print(1000>300)





โœ… Correct Answer: 3

print(1000==300)





โœ… Correct Answer: 2

print(10=10)





โœ… Correct Answer: 3

print(10>10<20==9)





โœ… Correct Answer: 2

Which of the following line gives a true output ?





โœ… Correct Answer: 1

print(10<50 & 300)





โœ… Correct Answer: 1

print(print(45+3))





โœ… Correct Answer: 3

print(print(45&34))





โœ… Correct Answer: 4

print(print(print(print(print(45))))), How many time it will print the None in output ?





โœ… Correct Answer: 4

print(45%4)





โœ… Correct Answer: 2

print(237//7)





โœ… Correct Answer: 2