Python MCQ Set 1 1. What is the output of the following? print(”Hello {name1} and {name2}”.format(name1=’foo’, name2=’bin’)) a) Hello foo and bin b) Hello {name1} and {name2} c) Error d) Hello and AnswerAnswer: a [Reason:] The arguments are accessed by their names. 2. What is the output of the following? print(”Hello {0!r} and {0!s}”.format(’foo’, ‘bin’))…