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

Problem Solving and Python Programming MCQs | Page - 5

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.

Q. 41) What does ~4 evaluate to?

(A) -5
(B) -4
(C) -3
(D) +3
View Answer Discuss Share

Q. 42) What is the result of cmp(3, 1)?

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

Q. 43) Which of the following is incorrect?

(A) float(‘inf’)
(B) float(‘nan’)
(C) float(’56’+’78’)
(D) float(’12+34′)
View Answer Discuss Share

Q. 44) What is the result of round(0.5) – round(-0.5)?

(A) 1.0
(B) 2.0
(C) 0.0
(D) value depends on python version
View Answer Discuss Share

Q. 45) What does 3 ^ 4 evaluate to?

(A) 81
(B) 12
(C) 0.75
(D) 7
View Answer Discuss Share

Q. 46) The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.

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

Q. 47) What will be the value of the following Python expression? 4 + 3 % 5

(A) 4
(B) 7
(C) 2
(D) 0
View Answer Discuss Share

Q. 48) Which of the following operators has its associativity from right to left?

(A) +
(B) //
(C) %
(D) **
View Answer Discuss Share

Q. 49) What will be the value of x in the
following Python expression?
x = int(43.55+2/2)

(A) 43
(B) 44
(C) 22
(D) 23
View Answer Discuss Share

Q. 50) What is the value of the following expression? 2+4.00, 2**4.0

(A) (6.0, 16.0)
(B) (6.00, 16.00)
(C) (6, 16)
(D) (6.00, 16.0)
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