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

# Problem Solving and Python Programming MCQs | Page - 31

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. 301) Which operator is overloaded by lg ()?`

(A) <
(B) >
(C) !=
(D) none of the mentioned

M

Mr. Dubey • 51.17K Points
Coach

## `Q. 302) Which function overloads the >> operator?`

(A) more ()
(B) gt ()
(C) ge ()
(D) none of the mentioned

M

Mr. Dubey • 51.17K Points
Coach

## `Q. 303) Let A and B be objects of class Foo. Which functions are called when print(A + B) is executed?`

(C) sum (), str ()
(D) str (), sum ()

M

Mr. Dubey • 51.17K Points
Coach

## `Q. 304) Which function overloads the // operator?`

(A) div ()
(B) ceildiv ()
(C) floordiv ()
(D) truediv ()

M

Mr. Dubey • 51.17K Points
Coach

## `Q. 305) How many except statements can a try- except block have?`

(A) zero
(B) one
(C) more than one
(D) more than zero

M

Mr. Dubey • 51.17K Points
Coach

## `Q. 306) When is the finally block executed?`

(A) when there is no exception
(B) when there is an exception
(C) only if some condition that has been specified is satisfied
(D) always

M

Mr. Dubey • 51.17K Points
Coach

## `Q. 307) What happens when ‘1’ == 1 is executed?`

(A) we get a true
(B) we get a false
(C) an typeerror occurs
(D) a valueerror occurs

M

Mr. Dubey • 51.17K Points
Coach

## `Q. 308) Which of the following is not an exception handling keyword in Python?`

(A) try
(B) except
(C) accept
(D) finally

M

Mr. Dubey • 51.17K Points
Coach

## `Q. 309) )) type(g)`

(A) class <’loop’>
(B) class <‘iteration’>
(C) class <’range’>
(D) class <’generator’>

M

Mr. Dubey • 51.17K Points
Coach

## `Q. 310) + '3'`

(A) nameerror
(B) indexerror
(C) valueerror
(D) typeerror

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