Home / Engineering / Problem Solving and Python Programming MCQs / Page 17

Problem Solving and Python Programming MCQs | Page - 17

Dear candidates you will find MCQ questions of Problem Solving and Python Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.

M

Mr. Dubey • 51.27K Points
Coach

Q. 161) What is the value of the following Python expression? bin(0x8)

(A) ‘0bx1000’
(B) 8
(C) 1000
(D) ‘0b1000’
View Answer Discuss Share

M

Mr. Dubey • 51.27K Points
Coach

Q. 162) What will be the output of the following Python expression? 0x35 | 0x75

(A) 115
(B) 116
(C) 117
(D) 118
View Answer Discuss Share

M

Mr. Dubey • 51.27K Points
Coach

Q. 163) It is not possible for the two’s complement value to be equal to the original value in any case.

(A) true
(B) false
(C) ---
(D) ---
View Answer Discuss Share

M

Mr. Dubey • 51.27K Points
Coach

Q. 164) Bitwise                    gives 1 if either of the bits is 1 and 0 when both of the bits are 1.

(A) or
(B) and
(C) xor
(D) not
View Answer Discuss Share

M

Mr. Dubey • 51.27K Points
Coach

Q. 165) What will be the output of the following
Python expression?
4^12

(A) 2
(B) 4
(C) 8
(D) 12
View Answer Discuss Share

M

Mr. Dubey • 51.27K Points
Coach

Q. 166) 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
View Answer Discuss Share

M

Mr. Dubey • 51.27K Points
Coach

Q. 167) R operator. Hence the output of the code shown above is: 20 10.

(A) 1011011
(B) 11010100
(C) 11101011
(D) 10110011
View Answer Discuss Share

M

Mr. Dubey • 51.27K Points
Coach

Q. 168) What will be the output of the following
Python code snippet?
not(10<20) and not(10>30)

(A) true
(B) false
(C) error
(D) no output
View Answer Discuss Share

M

Mr. Dubey • 51.27K Points
Coach

Q. 169) What will be the output of the following
Python code?
for i in range(0):
print(i)

(A) 0
(B) no output
(C) error
(D) none of the mentioned
View Answer Discuss Share

M

Mr. Dubey • 51.27K Points
Coach

Q. 170) What will be the output of the following
Python code?
for i in range(2.0):
print(i)

(A) 0.0 1.0
(B) 0 1
(C) error
(D) none of the mentioned
View Answer Discuss Share

Explore Sets

Problem Solving and Python Programming MCQs Set 1

Problem Solving and Python Programming MCQs Set 2

Problem Solving and Python Programming MCQs Set 3

Problem Solving and Python Programming MCQs Set 4

Problem Solving and Python Programming MCQs Set 5

Problem Solving and Python Programming MCQs Set 6

Problem Solving and Python Programming MCQs Set 7

Problem Solving and Python Programming MCQs Set 8

Problem Solving and Python Programming MCQs Set 9

Problem Solving and Python Programming MCQs Set 10

Problem Solving and Python Programming MCQs Set 11

Problem Solving and Python Programming MCQs Set 12

Problem Solving and Python Programming MCQs Set 13

Problem Solving and Python Programming MCQs Set 14

Problem Solving and Python Programming MCQs Set 15

Problem Solving and Python Programming MCQs Set 16

Problem Solving and Python Programming MCQs Set 17

Problem Solving and Python Programming MCQs Set 18

Problem Solving and Python Programming MCQs Set 19

Problem Solving and Python Programming MCQs Set 20

Problem Solving and Python Programming MCQs Set 21

Problem Solving and Python Programming MCQs Set 22

Problem Solving and Python Programming MCQs Set 23

Problem Solving and Python Programming MCQs Set 24

Problem Solving and Python Programming MCQs Set 25

Problem Solving and Python Programming MCQs Set 26

Problem Solving and Python Programming MCQs Set 27

Problem Solving and Python Programming MCQs Set 28

Problem Solving and Python Programming MCQs Set 29

Problem Solving and Python Programming MCQs Set 30

Problem Solving and Python Programming MCQs Set 31

Problem Solving and Python Programming MCQs Set 32

Problem Solving and Python Programming MCQs Set 33

Problem Solving and Python Programming MCQs Set 34

Problem Solving and Python Programming MCQs Set 35

Problem Solving and Python Programming MCQs Set 36

Problem Solving and Python Programming MCQs Set 37

Problem Solving and Python Programming MCQs Set 38

Problem Solving and Python Programming MCQs Set 39

Problem Solving and Python Programming MCQs Set 40

Problem Solving and Python Programming MCQs Set 41

Problem Solving and Python Programming MCQs Set 42

Problem Solving and Python Programming MCQs Set 43