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

# Problem Solving and Python Programming MCQs | Page - 20

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. 191) !r} and {0!s}".format('fo o', 'bin'))`

(A) hello foo and foo
(B) hello ‘foo’ and foo
(C) hello foo and ‘bin’
(D) error

## `Q. 192) } and {1}".format(('foo', 'bin')))`

(A) hello foo and bin
(B) hello (‘foo’, ‘bin’) and (‘foo’, ‘bin’)
(C) error
(D) none of the mentioned

## `Q. 193) [0]} and {0[1]}".format(( 'foo', 'bin')))`

(A) hello foo and bin
(B) hello (‘foo’, ‘bin’) and (‘foo’, ‘bin’)
(C) error
(D) none of the mentioned

## `Q. 194) , 10, 12))`

(A) the sum of 2 and 10 is 12
(B) error
(C) the sum of 0 and 1 is 2
(D) none of the mentioned

## `Q. 195) , 10, 12))`

(A) the sum of 2 and 10 is 12
(B) the sum of 10 and a is 14
(C) the sum of 10 and a is c
(D) error

## `Q. 196) 2223334'))`

(A) 1,112,223,334
(B) 111,222,333,4
(C) 1112223334
(D) error

(A) min()
(B) divmod()
(C) all()
(D) float()

(A) ord()
(B) ord(‘ ‘)
(C) ord(”)
(D) ord(“”)

## `Q. 199) Which of the following is the use of function in python?`

(A) functions are reusable pieces of programs
(B) functions don’t provide better modularity for your application
(C) you can’t also create your own functions
(D) all of the mentioned

## `Q. 200) printMax(3, 4)`

(A) 3
(B) 4
(C) 4 is maximum
(D) none of the mentioned

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