Python, Python QuizTagged python quiz June 20, 2021June 20, 2021 Python Fundamentals Quiz : Set – 1 161 Python Fundamentals Quiz : Set 1 This Quiz checks your python fundamentals knowledge. 1 / 10 a = [10,5,0,15,20]b = a.sort()print(b) None Error [0, 5, 10, 15, 20] 2 / 10 a = 2b = 3print(a ^ b) Error 1 8 3 / 10 t = [0] s1 = s2 = t s1 += [1] s2 += [1] print(t) [2] [0, 1] [0] [0, 1, 1] 4 / 10 a = {"a":1, "b":2}b = {"c":3, "d":4}print(a + b) {"a":1, "b":2, "c":3, "d":4} Error 5 / 10 a = [1,2,3]b = [3,4,5]print(a + b) [4, 6, 8] Error [1, 2, 3, 3, 4, 5] 6 / 10 a = [1,2,2,3,2,9,6,5]b = set(a)c = [3,4,5,4]print(len(b) + sum(c)) 22 18 Error 24 7 / 10 a = 1 def dummy(): a += 10 print(a)dummy() Error 1 11 !!Wrong!! !!Correct !! 8 / 10 a = {1,2,3,3,4,5}print(a[3]) 3 4 Error 9 / 10 a = 1 + 2jprint(type(a)) complex Error 10 / 10 a = 1def dummy(): a += 10 print(a)print(a) 1 11 Error !!Wrong!! !!Correct !! Your score isThe average score is 42% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Related Posts:Quiz series: 1 Topic Prokaryotes vs. EukaryotesQuiz series: 2 Topic Cellular respirationEnd to End Data Engineering Roadmap