Posted inQuiz Python Intermediate Level Interview Questions Quiz (Multiple Choice) Posted by Mr. AI December 22, 2024 Spread the love Test your knowledge by answering the Python Interview Questions Quiz (Intermediate Level) Python Intermediate Level Interview Questions Quiz Python Intermediate Level Interview Questions Quiz 1 / 15 Which module in Python is used for serializing and deserializing objects? json pickle csv xml 2 / 15 What is the output of 3 * 'abc' in Python? abcabcabc Error ['abc', 'abc', 'abc'] None 3 / 15 Which Python function is used to iterate over a sequence while keeping track of the index? enumerate() zip() map() filter() 4 / 15 What will list('python') return? ['python'] ['p', 'y', 't', 'h', 'o', 'n'] Error ['p y t h o n'] 5 / 15 Which of the following statements is used to handle exceptions in Python? catch except try-except error 6 / 15 What does the 'pass' statement do in Python? Terminates a loop Skips an iteration Does nothing Raises an error 7 / 15 Which method is used to remove a key-value pair from a dictionary? pop() delete() remove() discard() 8 / 15 Which keyword is used to define an anonymous function in Python? def lambda function anonymous 9 / 15 Which Python module provides support for working with regular expressions? regex re match pattern 10 / 15 What is the purpose of the __init__ method in Python classes? It initializes an object It destroys an object It is used to call a method It is used to define a function 11 / 15 Which function is used to get the length of a list in Python? count() size() len() length() 12 / 15 Which data type is immutable in Python? List Set Dictionary Tuple 13 / 15 What is the difference between a shallow copy and a deep copy? Shallow copy creates a new object with references, deep copy creates a new object with new copies Deep copy copies references, shallow copy copies objects Both are the same None of the above 14 / 15 Which Python built-in function is used to iterate over an iterable and apply a function? map() reduce() apply() forEach() 15 / 15 What is the output of bool([]) in Python? True False None Error Your score isThe average score is 66% 0% Restart quiz Related: Python Basics Interview Questions Quiz (Multiple Choice) Mr. AI My name is Ram. I am a Data Scientist and Machine Learning expert with good knowledge in Generative AI. Working for a top MNC in New York city. I am writing this blog to share my knowledge with enthusiastic learners like you. View All Posts Post navigation Previous Post 7 Real-World Examples of Machine Learning in HealthcareNext PostPython Advance Level Interview Questions Quiz (Multiple Choice)