This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 24 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 24 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. How do you sort data in SQL? A) ORDER BY. B) SORT BY. C) ARRANGE BY. D) ALIGN BY. Show Answer Correct Answer: A) ORDER BY. 2. What will be the result of 343 % 15? A) 12. B) 13. C) 14. D) 11. Show Answer Correct Answer: B) 13. 3. What will be the output of print('Python' * 2)? A) 2 Python. B) Python 2. C) Python + Python. D) PythonPython. Show Answer Correct Answer: D) PythonPython. 4. Which of the following symbol is used to write a comment? A) **. B) ?. C) //. D) #. Show Answer Correct Answer: D) #. 5. Which of the following is the correct syntax for importing a module in Python? A) Import . B) #import . C) Import module name. D) None of the mentioned. Show Answer Correct Answer: A) Import . 6. Which of the following will create an empty list? A) List = (). B) List = []. C) List = \{\}. D) List = "". Show Answer Correct Answer: B) List = []. 7. Which type of robots can be controlled by Python? A) A food processor. B) Basic robots that pick up objects. C) A bicycle. D) A hammer. Show Answer Correct Answer: B) Basic robots that pick up objects. 8. What is a data type in Python? A) A data type in Python is a way to format strings for output. B) A data type in Python is a method for defining classes. C) A data type in Python is a classification that specifies the type of value a variable can hold. D) A data type in Python is a function that performs operations on data. Show Answer Correct Answer: C) A data type in Python is a classification that specifies the type of value a variable can hold. 9. What will be displayed if the user types in "Bob" ? A) Your name is Bob. B) Hello, Bob!. C) Welcome, user!. D) Bob is not recognized. Show Answer Correct Answer: A) Your name is Bob. 10. Fill in the blank:The first program you write in Python is often called the ..... A) Python Introduction. B) Installation. C) Hello World Program. D) Data Types. Show Answer Correct Answer: C) Hello World Program. 11. Which of the following is not used in Python? A) Print(). B) Input(). C) Speak(). D) Len(). Show Answer Correct Answer: C) Speak(). 12. What is the purpose of setting up a Python environment? A) To manage system hardware. B) To write and execute Python code. C) To create a database. D) To design web pages. Show Answer Correct Answer: B) To write and execute Python code. 13. What, if anything, is wrong with the following?x=input("Type your password: ")print("You typed", x) A) Nothing is wrong. B) The password is printed in plain text. C) The input function is not secure. D) The variable x is not defined. Show Answer Correct Answer: A) Nothing is wrong. 14. What is the programming paradigm of Python? A) Object Oriented Programming OOP. B) Functional programming. C) Procedural programming. D) Multi paradigm. Show Answer Correct Answer: D) Multi paradigm. 15. Which of the following tools is used to create virtual environments in Python? A) Anaconda. B) Pip. C) Venv. D) Jupyter. Show Answer Correct Answer: C) Venv. 16. Which of these is an INVALID variable name in Python? A) FirstName. B) Score. C) Student name. D) 2nd place. Show Answer Correct Answer: D) 2nd place. 17. What is the output of the following code? "'pythondef add(a, b):return a + bprint(add(2, 3)) "' A) 5. B) 23. C) A + b. D) Error. Show Answer Correct Answer: A) 5. 18. What will be the output of print(10 // 3)? A) 3.33. B) 3. C) 4. D) 3.0. Show Answer Correct Answer: B) 3. 19. What will print(type(3.5)) output? A) Int. B) Str. C) Float. D) Bool. Show Answer Correct Answer: C) Float. 20. What are the three common data types in Python? A) Function, Class, Module. B) Dictionary, Set, None. C) Boolean, List, Tuple. D) String, Integer, Float. Show Answer Correct Answer: D) String, Integer, Float. 21. In age = 13, what is the identifier? A) Age. B) =. C) 13. D) Age = 13. Show Answer Correct Answer: A) Age. 22. When designating a variable, if more than one word is used, there needs to be a(n) ..... between the words A) Space. B) Hyphen (-). C) Hashtag (#). D) Underscore ( ). Show Answer Correct Answer: D) Underscore ( ). 23. How do you display text? A) Print. B) Input. C) Output. D) Command. Show Answer Correct Answer: B) Input. 24. Read the Python program below:answer = 3 + 13 * 3print("The Answer is", answer)When this program is executed, what will be displayed on the screen? A) The Answer is 3 + 13 * 3. B) The Answer is 42. C) The Answer is 48. D) The Answer is answer. Show Answer Correct Answer: B) The Answer is 42. 25. Name a popular library used for data analysis in Python. A) NumPy. B) Scikit-learn. C) Matplotlib. D) Pandas. Show Answer Correct Answer: D) Pandas. ← PreviousNext →Related QuizzesClass 11 Computer Science Chapter 2 Introduction To Python Quiz 1Class 11 Computer Science Chapter 2 Introduction To Python Quiz 2Class 11 Computer Science Chapter 2 Introduction To Python Quiz 3Class 11 Computer Science Chapter 2 Introduction To Python Quiz 4Class 11 Computer Science Chapter 2 Introduction To Python Quiz 5Class 11 Computer Science Chapter 2 Introduction To Python Quiz 6Class 11 Computer Science Chapter 2 Introduction To Python Quiz 7Class 11 Computer Science Chapter 2 Introduction To Python Quiz 8Class 11 Computer Science Chapter 2 Introduction To Python Quiz 9Class 11 Computer Science Chapter 2 Introduction To Python Quiz 10 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books