Python MCQ Set 1 1. The output of the code shown below is: def f1(): x=15 print(x) x=12 f1() a) Error b) 12 c) 15 d) 1512 AnswerAnswer: c [Reason:] In the code shown above, x=15 is a local variable whereas x=12 is a global variable. Preference is given to local variable over global variable….