Python Challange 1 Leave a Comment / By joydeep.jc / February 3, 2025 Welcome to Python Challange 1 Total Questions in this quiz are 84. Don't forget to download your certificate after completion of the quiz. Wish you all the best!!! Name Email How do you check the memory address of a variable? mem(var) id(var) address(var) getaddr(var) None Comment Which method is used to remove whitespace from the start and end of a string? deleteWhitespace() strip() trim() removeSpaces() None Comment What is the output of print({1, 2, 3} & {2, 3, 4})? {} {1, 4} {1, 2, 3, 4} {2, 3} None Comment What will print(4 and 5 or 0 and 7) output? 5 7 0 4 None Comment What will print({True: 'A', 1: 'B', 1.0: 'C'}) output? {'A', 'B', 'C'} {'A': True, 'B': 1, 'C': 1.0} {'True': 'C'} {'True': 'A', '1': 'B', '1.0': 'C'} None Comment What does isinstance(3, int) return? False True Error None None Comment Which of the following is used to create an empty set? set() {} empty{} [] None Comment What will bool([ ]) return? False True Error None None Comment What will print(type(lambda x: x)) return? method function NoneType lambda None Comment What is the output of print(bool(0.0))? None False True Error None Comment What is the output of print(sorted(['12', '1', '111', '2'], key=int))? Error ['12', '1', '111', '2'] ['1', '2', '12', '111'] ['1', '111', '12', '2'] None Comment What will print(1 < 2 1) output? Error False None True None Comment What does print(chr(ord('a') + 2)) output? 'c' 'a2' 'Error' 97 None Comment What will print(1 < 2 1) output? False None True Error None Comment What is the default return value of a function that does not explicitly return anything? None 0 "" False None Comment What will print((lambda x: [x, x**2, x**3])(3)) return? 9 (3, 9, 27) Error [3, 9, 27] None Comment What is the output of print(sorted(['12', '1', '111', '2'], key=int))? Error ['1', '2', '12', '111'] ['1', '111', '12', '2'] ['12', '1', '111', '2'] None Comment What is the output of print([i for i in range(3)] == list(range(3)))? True None False Error None Comment What does print(int('1f', 16)) output? 1.5 15 Error 31 None Comment What will print(1 < 2 1) output? None True False Error None Comment Time's upTime is Up!