This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 26 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 26 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Why is Python considered easy to learn? A) Python is primarily used for low-level programming tasks. B) Python is difficult to read and understand for beginners. C) Python is considered easy to learn due to its simple syntax and readability. D) Python has a complex syntax that requires extensive training. Show Answer Correct Answer: C) Python is considered easy to learn due to its simple syntax and readability. 2. Which of the following will print the text Python Programming on the same line? A) Print("Python", end=" ") print("Programming"). B) Print("Python", "Programming"). C) Print("Python"); print("Programming"). D) Print("Python Programming"). Show Answer Correct Answer: D) Print("Python Programming"). 3. What is the purpose of saving your Python program? A) To open it up and do more work on it later. B) To restart the computer. C) To close the program. D) To delete the program. Show Answer Correct Answer: A) To open it up and do more work on it later. 4. Choose the keyword from the following A) IF. B) Else. C) IF. D) Else. Show Answer Correct Answer: B) Else. 5. Is Python free software? A) No. B) Maybe. C) True. D) False. Show Answer Correct Answer: B) Maybe. 6. Which of the following is a mutable data type in Python? A) Tuple. B) String. C) List. D) Integer. Show Answer Correct Answer: C) List. 7. What does 'if ..... name ..... == " ..... main ..... ":' do? A) It allows code to run in any imported module. B) It allows code to run only when the script is executed directly, not when imported. C) It makes the script run in a different namespace. D) It prevents the script from executing any code at all. Show Answer Correct Answer: B) It allows code to run only when the script is executed directly, not when imported. 8. Which function is used to display output in Python? A) Show(). B) Print(). C) Display(). D) Output(). Show Answer Correct Answer: B) Print(). 9. Which of the following is TRUE about Python? A) Python is a low-level language. B) Python does not support object-orientated programming techniques. C) Python is a compiled language. D) Python is an open-source programming language. Show Answer Correct Answer: D) Python is an open-source programming language. 10. What is an algorithm? A) Coding mistakes. B) A list of rules to follow in order to solve a problem. C) Finding mistakes and getting rid of them. D) Data values that can change. Show Answer Correct Answer: B) A list of rules to follow in order to solve a problem. 11. What is the output of the following code? x = 2 x = x * x print(x) A) 4. B) 2. C) 8. D) 0. Show Answer Correct Answer: A) 4. 12. In Python a list with no elements like this [] is also called: A) None list. B) Zero list. C) False list. D) Empty list. Show Answer Correct Answer: D) Empty list. 13. Pick the Python command used to let the user type in some data A) Get. B) Input. C) Int. D) Float. Show Answer Correct Answer: B) Input. 14. Print( "Mypython" *3) A) Mypython*3. B) Mypython*3Mypython*3Mypython*3. C) MypythonMypythonMypython. D) None of the above. Show Answer Correct Answer: C) MypythonMypythonMypython. 15. A statement is ..... A) A part of an algorithm. B) A complete computer command. C) A solution to a problem. D) A translation of machine language. Show Answer Correct Answer: B) A complete computer command. 16. How do you immediately exit a loop in Python? A) Exit. B) Stop. C) Break. D) Return. Show Answer Correct Answer: C) Break. 17. Read the Python program below:print("Enter a number")number = int(input())if number > 0:print(number, "is positive")else:print(number, "is negative")When this program is executed, what will be displayed on the screen if the user enters 0 at the prompt? A) 0 is positive0 is negative. B) 0 is positive. C) 0 is negative. D) The program will not display anything because 0 is neither positive nor negative. Show Answer Correct Answer: C) 0 is negative. 18. What must you use at the end of an if line in Python? A) A colon:. B) A comma,. C) A period . D) A semicolon ;. Show Answer Correct Answer: A) A colon:. 19. Python was created by: A) Bill Gates. B) Guido van Rossum. C) Elon Musk. D) Mark Zuckerberg. Show Answer Correct Answer: B) Guido van Rossum. 20. What are algorithms? A) Step-by-step instructions for solving problems. B) The process of representing numbers and text in binary. C) The study of computers and computing technologies. D) The use of electricity to represent binary digits. Show Answer Correct Answer: A) Step-by-step instructions for solving problems. 21. A data type that can only be one of two values:True or False A) String. B) Boolean. C) Float. D) Integer. Show Answer Correct Answer: B) Boolean. 22. What is the correct syntax to output "Hello, World" in Python? A) Echo "Hello, World". B) Print("Hello, World"). C) Printf("Hello, World"). D) Cout << "Hello, World". Show Answer Correct Answer: B) Print("Hello, World"). 23. Which of the following data types is NOT supported in Python? A) Character. B) String. C) Float. D) Integer. Show Answer Correct Answer: A) Character. 24. What type of programming paradigms does Python support? A) Procedural. B) Object-oriented. C) Functional. D) All of the above. Show Answer Correct Answer: D) All of the above. 25. What will happen if you try to print a variable that hasn't been defined? A) An error will occur. B) It will print None. C) It will print an empty string. D) None of the above. Show Answer Correct Answer: A) An error will occur. ← 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