On This Page

This set of Problem Solving and Python Programming Multiple Choice Questions & Answers (MCQs) focuses on Problem Solving And Python Programming Set 25

Q1 | ))
  • 2
  • 0
  • 1
  • none of the mentioned
Q2 | , 11))
  • 2
  • 0
  • 1
  • error
Q3 | What is the default value of encoding in encode()?
  • ascii
  • qwerty
  • utf-8
  • utf-16
Q4 | ))
  • ab  cd  ef
  • abcdef
  • ab\\tcd\\tef
  • ab cd ef
Q5 | } and {1}".format('foo', 'bin'))
  • hello foo and bin
  • hello {0} and {1} foo bin
  • error
  • hello 0 and 1
Q6 | } and {name2}".format( 'foo', 'bin'))
  • hello foo and bin
  • hello {name1} and {name2}
  • error
  • hello and
Q7 | } and {name2}".format( name1='foo', name2='bin'))
  • hello foo and bin
  • hello {name1} and {name2}
  • error
  • hello and
Q8 | !r} and {0!s}".format('fo o', 'bin'))
  • hello foo and foo
  • hello ‘foo’ and foo
  • hello foo and ‘bin’
  • error
Q9 | } and {1}".format(('foo', 'bin')))
  • hello foo and bin
  • hello (‘foo’, ‘bin’) and (‘foo’, ‘bin’)
  • error
  • none of the mentioned
Q10 | [0]} and {0[1]}".format(( 'foo', 'bin')))
  • hello foo and bin
  • hello (‘foo’, ‘bin’) and (‘foo’, ‘bin’)
  • error
  • none of the mentioned
Q11 | , 10, 12))
  • the sum of 2 and 10 is 12
  • error
  • the sum of 0 and 1 is 2
  • none of the mentioned
Q12 | , 10, 12))
  • the sum of 2 and 10 is 12
  • the sum of 10 and a is 14
  • the sum of 10 and a is c
  • error
Q13 | 2223334))
  • 1,112,223,334
  • 111,222,333,4
  • 1112223334
  • error
Q14 | 2223334'))
  • 1,112,223,334
  • 111,222,333,4
  • 1112223334
  • error
Q15 | 2223334))
  • 1,112,223,334
  • 111,222,333,4
  • 1112223334
  • error
Q16 | 2223334))
  • 1,112,223,334
  • 111,222,333,4
  • 1112223334
  • error
Q17 | :.2}'.format(1/3))
  • 0.333333
  • 0.33
  • 0.333333:.2
  • error
Q18 | :.2%}'.format(1/3))
  • 0.33
  • 0.33%
  • 33.33%
  • 33%
Q19 | '.isalnum())
  • true
  • false
  • none
  • error
Q20 | '.isalnum())
  • true
  • false
  • none
  • error
Q21 | xa'.isdigit())
  • true
  • false
  • none
  • error
Q22 | ,'.islower())
  • true
  • false
  • none
  • error
Q23 | '.isnumeric())
  • true
  • false
  • none
  • error
Q24 | 1'.isnumeric())
  • true
  • false
  • none
  • error
Q25 | erdE a'.isprintable())
  • true
  • false
  • none
  • error