Python/Operators Sample Test,Sample questions

Question:
& operator is show the

1.and

2.or

3.mode

4.binary

Posted Date:-2019-06-04 10:52:17


Question:
<< operator is replace by 

1.lshift()

2.more()

3.ls()

4.rs()

Posted Date:-2019-06-04 10:49:09


Question:
>> operator is replace by 

1.rshift()

2.more()

3.ls()

4.rs()

Posted Date:-2019-06-04 10:49:35


Question:
AND is shown by which of the operator ?

1.|

2.%

3./

4.None of the above

Posted Date:-2019-06-04 10:51:48


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)

Posted Date:-2019-06-04 10:41:25


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

1.&

2.%

3.|

4./

Posted Date:-2019-06-04 10:50:21


Question:
print(100 & 4)

1.100

2.4

3.1

4.Error

Posted Date:-2019-06-04 10:55:29


Question:
print(1000&300&234)

1.1000

2.401

3.40

4.4

Posted Date:-2019-06-04 11:01:03


Question:
print(1000&300)

1.1000

2.300

3.296

4.1

Posted Date:-2019-06-04 10:58:32


Question:
print(1000<300)

1.1000

2.3000

3.300

4.None of the above

Posted Date:-2019-06-04 11:05:58


Question:
print(1000==300)

1.True

2.False

3.Error

4.None of the above

Posted Date:-2019-06-04 11:07:11


Question:
print(1000>300)

1.1000

2.300

3.True

4.false

Posted Date:-2019-06-04 11:06:34


Question:
print(1000|300&234)

1.1000

2.300

3.234

4.False

Posted Date:-2019-06-04 10:59:46


Question:
print(1000|300)

1.1000

2.1004

3.300

4.296

Posted Date:-2019-06-04 10:59:03


Question:
print(1000|300|234)

1.1000

2.1004

3.1006

4.1008

Posted Date:-2019-06-04 11:00:33


Question:
print(1000||300)

1.1000

2.300

3.0

4.Error

Posted Date:-2019-06-04 10:58:01


Question:
print(100>>4)

1.100

2.6

3.4

4.8

Posted Date:-2019-06-04 10:48:06


Question:
print(100|4)

1.100

2.4

3.0

4.1

Posted Date:-2019-06-04 10:56:04


Question:
print(10<50 & 300)

1.True

2.False

3.Error

4.None of the above

Posted Date:-2019-06-04 11:12:45


Question:
print(10=10)

1.True

2.False

3.Error

4.None of the above

Posted Date:-2019-06-04 11:08:00


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

1.True

2.False

3.Error

4.None of the above

Posted Date:-2019-06-04 11:08:54


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

1.1

2.0

3.1000

4.Error

Posted Date:-2019-06-04 11:01:52


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

1.1

2.0

3.32

4.23

Posted Date:-2019-06-04 11:02:22


Question:
print(237//7)

1.32

2.33

3.43

4.12

Posted Date:-2019-06-04 11:17:45


Question:
print(2<<1)

1.1

2.2

3.3

4.4

Posted Date:-2019-06-04 10:47:06


Question:
print(2>>3)

1.1

2.2

3.0

4.3

Posted Date:-2019-06-04 10:47:29


Question:
print(3--5) will give

1.5

2.3

3.8

4.Error

Posted Date:-2019-06-04 10:36:36


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

1.12

2.16

3.8

4.Error

Posted Date:-2019-06-04 10:33:44


Question:
print(4*5)

1.0

2.2

3.1

4.None of the above

Posted Date:-2019-06-04 10:55:06


Question:
print(4++2) will show

1.6

2.4

3.2

4.Error

Posted Date:-2019-06-04 10:35:53


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

1.4

2.1

3.2

4.3

Posted Date:-2019-06-04 10:35:15


Question:
print(45%4)

1.0

2.1

3.2

4.3

Posted Date:-2019-06-04 11:17:07


Question:
print(4<<2)

1.2

2.3

3.4

4.16

Posted Date:-2019-06-04 10:46:39


Question:
print(50&&4)

1.50

2.4

3.0

4.Error

Posted Date:-2019-06-04 10:57:13


Question:
print(50&4)

1.50

2.4

3.1

4.0

Posted Date:-2019-06-04 10:56:36


Question:
print(9//2)

1.4

2.5

3.4.5

4.None of the above

Posted Date:-2019-06-04 10:45:36


Question:
print(print(45&34))

1.45

2.34

3.45 None

4.32 None

Posted Date:-2019-06-04 11:15:10


Question:
print(print(45+3))

1.48

2.None

3.48 none

4.Error

Posted Date:-2019-06-04 11:14:21


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

Posted Date:-2019-06-04 11:16:19


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

Posted Date:-2019-06-04 10:37:33


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

1.Multiplication

2.Sqaure

3.Double multiple

4.Power

Posted Date:-2019-06-04 10:34:40


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

1.3

2.4

3.1

4.Error

Posted Date:-2019-06-04 10:38:19


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

1.32

2.0

3.1

4.2

Posted Date:-2019-06-04 10:38:56


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

1.0

2.1

3.2

4.Error

Posted Date:-2019-06-04 10:39:40


Question:
Which of the following is not correct ?

1.a=a+1

2.a+=1

3.a=+1

4.a++

Posted Date:-2019-06-04 11:03:43


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

1.&

2.|

3.++

4.**

Posted Date:-2019-06-04 10:53:41


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

Posted Date:-2019-06-04 11:10:27


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

1.**

2.&

3.|

4.All of the above

Posted Date:-2019-06-04 10:54:18


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

1.and

2.or

3.division

4.power

Posted Date:-2019-06-04 10:51:17


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

1.a++

2.a--

3.++a

4.All of the above

Posted Date:-2019-06-04 11:04:39


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. Test
  53. python mcq question and answer
Search
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!