Python MCQ Set 1 1. What is the output of the code shown? l=[1,2,3,4,5] [x&1 for x in l] a) [1, 1, 1, 1, 1] b) [1, 0, 1, 0, 1] c) [1, 0, 0, 0, 0] d) [0, 1, 0, 1, 0] AnswerAnswer: b [Reason:] In the code shown above, each of the numbers…
Python MCQ Set 1 1. What is the output of the code shown? l=[1,2,3,4,5] [x&1 for x in l] a) [1, 1, 1, 1, 1] b) [1, 0, 1, 0, 1] c) [1, 0, 0, 0, 0] d) [0, 1, 0, 1, 0] AnswerAnswer: b [Reason:] In the code shown above, each of the numbers…