Latest news Online Exams best health insurance policy for family in India, Python Quiz mpsc-info 31 March 2024 0 Comments Python Quiz 0% 353 Created on March 31, 2024 By mpsc-infoTechnology Python-Advance २० प्रश्न प्रत्येकी ०१ गुणासाठीवेळ १० मिनिटे 1 / 20 Which one of the following is the use of function in python? Functions are reusable pieces of programs All of the mentioned you can’t also create your own functions Functions don’t provide better modularity for your application 2 / 20 What are the two main types of functions in Python? System function Built-in function & User defined function Custom function User function 3 / 20 Which of the following is the correct extension of the Python file? .p .python .pl .py 4 / 20 Which arithmetic operators cannot be used with strings in Python? - * All of the mentioned + 5 / 20 Is Python case sensitive when dealing with identifiers? no machine dependent none of the mentioned yes 6 / 20 What does pip stand for python? Pip Installs Python All of the mentioned Pip Installs Packages Preferred Installer Program 7 / 20 To add a new element to a list we use which Python command? list1.addEnd(5) list1.addLast(5) list1.append(5) list1.add(5) 8 / 20 Which of the following statements is used to create an empty set in Python? set() () [] {} 9 / 20 Which of the following functions is a built-in function in python? print() factorial() seed() sqrt() 10 / 20 What will be the output of the following Python function?len(["hello",2, 4, 6]) 4 Error 6 3 11 / 20 Which of these is the definition for packages in Python? A folder of python modules A set of programs making use of Python modules A number of files containing Python definitions and statements A set of main modules 12 / 20 Which one of the following is not a keyword in Python language? assert eval nonlocal pass 13 / 20 What is the maximum possible length of an identifier in Python? none of the mentioned 79 characters 31 characters 63 characters 14 / 20 What will be the output of the following Python code?i = 1while True: if i%3 == 0: break print(i) i + = 1 error none of the mentioned 1 2 1 2 3 15 / 20 All keywords in Python are in _________ Capitalized lower case UPPER CASE None of the mentioned 16 / 20 Which of the following is not a core data type in Python programming? Class Tuples Dictionary Lists 17 / 20 Is Python code compiled or interpreted? Python code is only compiled Python code is both compiled and interpreted Python code is neither compiled nor interpreted Python code is only interpreted 18 / 20 Which of the following is used to define a block of code in Python language? Brackets Key All of the mentioned Indentation 19 / 20 Which of the following is true for variable names in Python? none of the mentioned underscore and ampersand are the only two special characters allowed unlimited length all private members must have leading and trailing underscores 20 / 20 Which type of Programming does Python support? object-oriented programming structured programming all of the mentioned functional programming Your score is LinkedIn Facebook Twitter 0% Restart quiz
Post Comment Cancel reply Comments Name E-mail Save my name, email, and website in this browser for the next time I comment.
Post Comment