Python/Python MCQS - Operators Sample Test,Sample questions

Question:
& operator is show the

1.and

2.or

3.mode

4.binary

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


Question:
<< operator is replace by 

1.lshift()

2.more()

3.ls()

4.rs()

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


Question:
>> operator is replace by 

1.rshift()

2.more()

3.ls()

4.rs()

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


Question:
AND is shown by which of the operator ?

1.|

2.%

3./

4.None of the above

Posted Date:-2019-06-04 03: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 03:41:25


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

1.&

2.%

3.|

4./

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


Question:
print(100 & 4)

1.100

2.4

3.1

4.Error

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


Question:
print(1000&300&234)

1.1000

2.401

3.40

4.4

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


Question:
print(1000&300)

1.1000

2.300

3.296

4.1

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


Question:
print(1000<300)

1.1000

2.3000

3.300

4.None of the above

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


Question:
print(1000==300)

1.True

2.False

3.Error

4.None of the above

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


Question:
print(1000>300)

1.1000

2.300

3.True

4.false

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


Question:
print(1000|300&234)

1.1000

2.300

3.234

4.False

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


Question:
print(1000|300)

1.1000

2.1004

3.300

4.296

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


Question:
print(1000|300|234)

1.1000

2.1004

3.1006

4.1008

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


Question:
print(1000||300)

1.1000

2.300

3.0

4.Error

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


Question:
print(100>>4)

1.100

2.6

3.4

4.8

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


Question:
print(100|4)

1.100

2.4

3.0

4.1

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


Question:
print(10<50 & 300)

1.True

2.False

3.Error

4.None of the above

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


Question:
print(10=10)

1.True

2.False

3.Error

4.None of the above

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


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

1.True

2.False

3.Error

4.None of the above

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


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

1.1

2.0

3.1000

4.Error

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


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

1.1

2.0

3.32

4.23

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


Question:
print(237//7)

1.32

2.33

3.43

4.12

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


Question:
print(2<<1)

1.1

2.2

3.3

4.4

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


Question:
print(2>>3)

1.1

2.2

3.0

4.3

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


Question:
print(3--5) will give

1.5

2.3

3.8

4.Error

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


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

1.12

2.16

3.8

4.Error

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


Question:
print(4*5)

1.0

2.2

3.1

4.None of the above

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


Question:
print(4++2) will show

1.6

2.4

3.2

4.Error

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


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

1.4

2.1

3.2

4.3

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


Question:
print(45%4)

1.0

2.1

3.2

4.3

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


Question:
print(4<<2)

1.2

2.3

3.4

4.16

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


Question:
print(50&&4)

1.50

2.4

3.0

4.Error

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


Question:
print(50&4)

1.50

2.4

3.1

4.0

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


Question:
print(9//2)

1.4

2.5

3.4.5

4.None of the above

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


Question:
print(print(45&34))

1.45

2.34

3.45 None

4.32 None

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


Question:
print(print(45+3))

1.48

2.None

3.48 none

4.Error

Posted Date:-2019-06-04 04: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 04: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 03:37:33


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

1.Multiplication

2.Sqaure

3.Double multiple

4.Power

Posted Date:-2019-06-04 03: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 03:38:19


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

1.32

2.0

3.1

4.2

Posted Date:-2019-06-04 03: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 03: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 04:03:43


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

1.&

2.|

3.++

4.**

Posted Date:-2019-06-04 03: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 04: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 03: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 03: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 04: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
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!