admin Oct, Wed, 2024 EXAM PYTHON FULL STACK 123456789101112131415161718192021222324252627282930313233343536373839404142434445 Exam Instructions: Total Number of Questions: 45 You will be required to answer a total of 45 multiple-choice questions. Time Limit: 15 minutes for the entire exam Once the time is up, the exam will automatically submit. Passing Criteria: A minimum score of 50% is required to pass the exam Multiple Attempts: You are allowed to take the exam multiple times. Only your highest score will be considered for certification. Additional Instructions: The exam timer cannot be paused once it begins. Good luck, and feel free to retake the exam to improve your score! PYTHON FULL STACK Test your PYTHON FULL STACK skills with a challenging exam designed to evaluate your knowledge in programming, data structures, and algorithms The certificate will be generated based on the information you provide in the form, so please ensure that all details are entered correctly. NameEmailPhone NumberUniversityCollegeDegreeDepartmentPass Out YearPass Out Year2014201520162017201820192020202120222023202420252026202720282029 1 / 45 1) How can you reverse a list? A) list.reverse() B) list[::-1] C) list.reverse_list() D) list.reverse() 2 / 45 2) Which method is used to merge two dictionaries? A) join() B) update() C) update() D) merge() 3 / 45 3) What does the strip() method do? A) Removes whitespace B) Removes whitespace C) Converts to lowercase D) Splits the string 4 / 45 4) How do you create a copy of a dictionary? A) my_dict.copy() B) my_dict.copy() C) my_dict[:] D) dict(my_dict) 5 / 45 5) What is the output of print(“hello world”.split())? A) Error B) ['hello', 'world'] C) ['hello world'] D) ['hello', 'world'] 6 / 45 6) What is the output of print(“Hello, World!”.find(“o”))? A) 4 B) 3 C) Error D) 4 7 / 45 7) How do you create a virtual environment in Python? A) env.create() B) python -m venv env C) python -m venv env D) create env 8 / 45 8) Which of the following is an immutable data type? A) List B) Tuple C) Dictionary D) Tuple 9 / 45 9) What is the correct syntax to create a set in Python? A) my_set = (1, 2, 3) B) my_set = {1, 2, 3} C) my_set = [1, 2, 3] D) my_set = {1, 2, 3} 10 / 45 10) How do you reverse a list in Python? A) my_list.reverse() B) my_list[::-1] C) reversed(my_list) D) All of the above 11 / 45 11) How do you check if a list is empty? A) if my_list.is_empty(): B) if len(my_list) == 0: C) if not my_list: D) if len(my_list) == 0: 12 / 45 12) How do you remove an item from a dictionary? A) my_dict.remove(key) B) del my_dict[key] C) my_dict.pop(key) D) del my_dict[key] 13 / 45 13) What will be the output of print(type([]))? A) <class 'list'> B) <class 'list'> C) <list> D) <type 'list'> 14 / 45 14) How do you check if a list is empty? A) len(my_list) == 0 B) len(my_list) == 0 C) my_list.empty() D) my_list.is_empty() 15 / 45 15) How do you check if a dictionary contains a key? A) dict.contains(key) B) key in dict C) dict.has(key) D) key in dict 16 / 45 16) What does the map() function do? A) Applies a function to every item in an iterable B) Applies a function to every item in an iterable C) Reduces items in an iterable D) Filters items in an iterable 17 / 45 17) Which of the following is a Python web framework? A) Both B) Django C) Flask D) Both 18 / 45 18) How do you stop a running process in a terminal? A) exit B) Ctrl + C C) Ctrl + C D) Ctrl + Z 19 / 45 19) How do you create a lambda function? A) lambda x: x + 1 B) lambda: (x + 1) C) lambda x: x + 1 D) def lambda x: x + 1 20 / 45 20) What does the items() method do in a dictionary? A) Returns a list of tuples of key-value pairs B) Returns a list of tuples of key-value pairs C) Returns a list of keys D) Returns a list of values 21 / 45 21) What is the output of print(“abc” * 3)? A) Error B) abcabcabc C) abcabc D) abcabcabc 22 / 45 22) Which of the following is used to create a new directory in Python? A) os.mkdir() B) os.create() C) os.mkdir() D) os.newdir() 23 / 45 23) How do you import a module in Python? A) import module_name B) from module_name import C) module_name.import D) import module_name 24 / 45 24) What is the output of print(1 == 1.0)? A) False B) True C) True D) Error 25 / 45 25) What is the output of print(bool(“”))? A) Error B) True C) False D) False 26 / 45 26) How do you access the last element of a list? A) list[-1] B) list[len(list)-1] C) list.last() D) list[-1] 27 / 45 27) How do you access elements in a tuple? A) By index B) By index C) By position D) By key 28 / 45 28) What is the purpose of the __init__ method in Python? A) Creates a method B) Initializes an object C) Defines a class D) Initializes an object 29 / 45 29) How do you create a tuple in Python? A) my_tuple = tuple() B) my_tuple = () C) Both 1 and 2 D) Both 1 and 2 30 / 45 30) How do you create a list comprehension? A) [x for x in iterable] B) list(x for x in iterable) C) [x for x in iterable] D) {x for x in iterable} 31 / 45 31) What is the purpose of the return statement in a function? A) Repeats the function B) Stops the program C) Exits the function and returns a value D) Exits the function and returns a value 32 / 45 32) What is the output of print(type([]) is list)? A) Error B) False C) True D) True 33 / 45 33) Which of the following is not a keyword in Python? A) class B) function C) function D) def 34 / 45 34) Which HTTP method is used to delete a resource in a REST API? A) POST B) DELETE C) PUT D) DELETE 35 / 45 35) What is the output of print(5 == 5.0)? A) Error B) True C) False D) True 36 / 45 36) What is the output of print(2 * “abc”)? A) abcabc B) Error C) abcabcabc D) abcabc 37 / 45 37) How do you import a module in Python? A) module.import B) from module import C) import module D) import module 38 / 45 38) What does the len() function return? A) Length of a string B) Length of a list C) Length of a string D) Number of arguments 39 / 45 39) How do you reverse a list in Python? A) Both 1 and 3 B) list.reverse() C) reversed(list) D) list[::-1] 40 / 45 40) What is the result of print(10 == 10.0)? A) 0 B) True C) False D) True 41 / 45 41) Which framework is commonly used for web development in Python? A) FastAPI B) Django C) All of the above D) Flask 42 / 45 42) What is the output of print(“abc”.find(“b”))? A) 2 B) True C) False D) True 43 / 45 43) How do you retrieve the last element of a list in Python? A) list[last] B) list[-1] C) list[-1] D) list[len(list)-1] 44 / 45 44) Which of the following is used to handle exceptions in Python? A) try/catch B) try/except C) catch/throw D) try/except 45 / 45 45) What will print(len([1, 2, 3])) output? A) 3 B) 2 C) 3 D) 1 Your score is LinkedIn Facebook Twitter VKontakte 0% ExamWEB DEVELOPMENT EXAM...Read MoreREACT JS PROGRAMMING EXAM...Read MorePYTHON FULL STACK...Read MorePYTHON EXAMS ...Read MoreMYSQL...Read MoreMACHINE LEARNING...Read MoreJAVASCRIPT PROGRAMMING EXAM...Read MoreJAVA SPRING BOOT...Read MoreJAVA PROGRAMMING EXAM...Read MoreJAVA FULL STACK...Read MoreHTML PROGRAMMING EXAM...Read MoreDEEP LEARNING...Read MoreDATA SCIENCE...Read MoreCSS PROGRAMMING EXAM...Read MoreANGULAR JS PROGRAMMING EXAM...Read More 16Share on WhatsApp10Share on LinkedIn5Share on YouTube9Share on Facebook Comments 0