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.

M

Mr. Dubey • 51.17K Points
Coach

## `Q. 41) What does ~4 evaluate to?`

(A) -5
(B) -4
(C) -3
(D) +3

M

Mr. Dubey • 51.17K Points
Coach

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

(A) 1
(B) 0
(C) true
(D) false

M

Mr. Dubey • 51.17K Points
Coach

## `Q. 43) Which of the following is incorrect?`

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

M

Mr. Dubey • 51.17K Points
Coach

## `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

M

Mr. Dubey • 51.17K Points
Coach

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

(A) 81
(B) 12
(C) 0.75
(D) 7

M

Mr. Dubey • 51.17K Points
Coach

## `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) ---

M

Mr. Dubey • 51.17K Points
Coach

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

(A) 4
(B) 7
(C) 2
(D) 0

M

Mr. Dubey • 51.17K Points
Coach

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

(A) +
(B) //
(C) %
(D) **

M

Mr. Dubey • 51.17K Points
Coach

## ```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

M

Mr. Dubey • 51.17K Points
Coach

## `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)

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.