Python/Python MCQS - Operators Sample Test,Sample questions

Question:
& operator is show the

1.and

2.or

3.mode

4.binary


Question:
<< operator is replace by 

1.lshift()

2.more()

3.ls()

4.rs()


Question:
>> operator is replace by 

1.rshift()

2.more()

3.ls()

4.rs()


Question:
AND is shown by which of the operator ?

1.|

2.%

3./

4.None of the above


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

1.print(64//2)

2.print(65//2)

3.Both of the above

4.print(66//2)


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

1.&

2.%

3.|

4./


Question:
print(100 & 4)

1.100

2.4

3.1

4.Error


Question:
print(1000&300&234)

1.1000

2.401

3.40

4.4


Question:
print(1000&300)

1.1000

2.300

3.296

4.1


Question:
print(1000<300)

1.1000

2.3000

3.300

4.None of the above


Question:
print(1000==300)

1.True

2.False

3.Error

4.None of the above


Question:
print(1000>300)

1.1000

2.300

3.True

4.false


Question:
print(1000|300&234)

1.1000

2.300

3.234

4.False


Question:
print(1000|300)

1.1000

2.1004

3.300

4.296


Question:
print(1000|300|234)

1.1000

2.1004

3.1006

4.1008


Question:
print(1000||300)

1.1000

2.300

3.0

4.Error


Question:
print(100>>4)

1.100

2.6

3.4

4.8


Question:
print(100|4)

1.100

2.4

3.0

4.1


Question:
print(10<50 & 300)

1.True

2.False

3.Error

4.None of the above


Question:
print(10=10)

1.True

2.False

3.Error

4.None of the above


Question:
print(10>10<20==9)

1.True

2.False

3.Error

4.None of the above


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

1.1

2.0

3.1000

4.Error


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

1.1

2.0

3.32

4.23


Question:
print(237//7)

1.32

2.33

3.43

4.12


Question:
print(2<<1)

1.1

2.2

3.3

4.4


Question:
print(2>>3)

1.1

2.2

3.0

4.3


Question:
print(3--5) will give

1.5

2.3

3.8

4.Error


Question:
print(4**2) will show ?

1.12

2.16

3.8

4.Error


Question:
print(4*5)

1.0

2.2

3.1

4.None of the above


Question:
print(4++2) will show

1.6

2.4

3.2

4.Error


Question:
print(4//2) will show ?

1.4

2.1

3.2

4.3


Question:
print(45%4)

1.0

2.1

3.2

4.3


Question:
print(4<<2)

1.2

2.3

3.4

4.16


Question:
print(50&&4)

1.50

2.4

3.0

4.Error


Question:
print(50&4)

1.50

2.4

3.1

4.0


Question:
print(9//2)

1.4

2.5

3.4.5

4.None of the above


Question:
print(print(45&34))

1.45

2.34

3.45 None

4.32 None


Question:
print(print(45+3))

1.48

2.None

3.48 none

4.Error


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

1.0

2.1

3.3

4.4


Question:
What is the use of the % operator ?

1.To find the division

2.To find the remainder

3.To find the power

4.Nothing


Question:
What is the use of the ** operator ?

1.Multiplication

2.Sqaure

3.Double multiple

4.Power


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

1.3

2.4

3.1

4.Error


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

1.32

2.0

3.1

4.2


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

1.0

2.1

3.2

4.Error


Question:
Which of the following is not correct ?

1.a=a+1

2.a+=1

3.a=+1

4.a++


Question:
Which of the following is not valid operator in the python

1.&

2.|

3.++

4.**


Question:
Which of the following line gives a true output ?

1.print(10>9)

2.print(20=20)

3.print(3<2)

4.1 and 2


Question:
Which of the following operator is valid in the python ?

1.**

2.&

3.|

4.All of the above


Question:
Which type of behavior is shown by the | operator ? 

1.and

2.or

3.division

4.power


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

1.a++

2.a--

3.++a

4.All of the above


More MCQS

  1. Python MCQS - Function
  2. Python MCQS - GUI in python
  3. Python MCQS - Operators
  4. Python MCQS - Data type in python
  5. Python MCQS - loops in python
  6. Python MCQS - Numpy
  7. Python MCQS - sqlite3
  8. Python MCQS - Library
  9. Python MCQS - Pandas
  10. Python MCQs
  11. Dictionary Python MCQ set 1
  12. Dictionary Python MCQ set 2
  13. MCQ For Python Fundamentals
  14. MCQ Introduction to Python Section 1
  15. MCQ Introduction to Python Section 2
  16. MCQ Introduction to Python Section 3
  17. MCQ on Flow of Control in Python Set 1
  18. MCQ on Flow of Control in Python Set 2
  19. MCQ on Python String Set 1
  20. File Handling in Python section 1
  21. File Handling in Python section 2
  22. Python Functions MCQS Set 1
  23. Python Functions MCQS Set 2
  24. MCQ on List in Python
  25. Pandas MCQ Questions Set 1
  26. Pandas MCQ Questions Set 2
  27. Tuple MCQ in Python
  28. Python dataframe MCQ
  29. Python Mcq Set 1
  30. Python Mcq Set 2
  31. Python Mcq Set 3
  32. Python Mcq Set 4
  33. Python Mcq Set 5
  34. Python Mcq Set 6
  35. Python Mcq Set 7
  36. Python Mcq Set 8
  37. Python Mcq Set 9
  38. Python Mcq Set 10
  39. Python Mcq Set 11
  40. Python Mcq Set 12
  41. Python Mcq Set 13
  42. Python Mcq Set 14
  43. Python Mcq Set 15
  44. Python Mcq Set 16
  45. Python Mcq Set 17
  46. Python Mcq Set 18
  47. Python Mcq Set 19
  48. Python Mcq Set 20
  49. Python Mcq Set 21
  50. Python MCQ
  51. Python MCQ Questions with Answer
  52. Python Practice Papers
  53. python mcq question and answer
  54. Test
Learn Python MCQS - Operators,Learn Python Objetive choice questions and answers,Python Multiple choice questions and answers,Python objective, Python questions , Python answers,Python MCQs questions and answer
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!