This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 9 Practical Work Python Exercises – Quiz 28 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 28 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. What is the output of the following code?a = "b"if True or True:a = "a"print(a * 2) A) Bb. B) Aa. C) Ab. D) Ba. Show Answer Correct Answer: B) Aa. 2. What technology is used to track Burmese Pythons in the wild? A) GPS collars. B) Radio tags. C) Microchips. D) Drones. Show Answer Correct Answer: B) Radio tags. 3. Operators with same precedence are evaluated in which manner? A) Left to Right. B) Right to Left. C) Can't Say. D) None of the mentioned. Show Answer Correct Answer: A) Left to Right. 4. Eval("20") will give us the number value of A) 2. B) 10. C) 5. D) 20. Show Answer Correct Answer: D) 20. 5. How do you tell python you want to use the turtle library A) Turtle import. B) Import turtle. C) From libraries import turtle. D) From turtle import libraries. Show Answer Correct Answer: B) Import turtle. 6. Which of the following is not valid variable name in Python? A) Var. B) Var name. C) Var11. D) 11var. Show Answer Correct Answer: D) 11var. 7. What is the default data type in Python? A) Real. B) String. C) Integer. D) Number. Show Answer Correct Answer: B) String. 8. Which brackets are used for Lists? A) ( ). B) [ ]. C) \{ \}. D) None of the above. Show Answer Correct Answer: B) [ ]. 9. Operators used in python:divide, multiply, add, subtract A) /, *, +, -. B) Div, mul, +, -. C) \, x, +, -. D) ~, *, +, -. Show Answer Correct Answer: A) /, *, +, -. 10. Predict the output:>>>saint="Thiruvalluvar">>>print(saint[5:]) A) Valluvar. B) Thiruvalluvar. C) Uvalluvar. D) Thiru. Show Answer Correct Answer: A) Valluvar. 11. Which of the following statements will successfully send the value "EEK" back from a function to the calling code? A) EEK. B) Return EEK. C) Back EEK. D) #print(EEK). Show Answer Correct Answer: B) Return EEK. 12. In Python, to make remarks that the computer will ignore, we use: A) Rem. B) #. C) IGNORE!. D) ( ). Show Answer Correct Answer: B) #. 13. What does import turtle mean? A) Loads the turtle library so the turtle functions are used automatically. B) Loads the turtle library and writes code automatically. C) Loads the turtle library so the turtle functions can be used in your program. D) Load the turtle library so you can choose the correct program to solve your problem. Show Answer Correct Answer: C) Loads the turtle library so the turtle functions can be used in your program. 14. How many except statements can a try-except block have? A) Zero. B) One. C) More than one. D) More than zero. Show Answer Correct Answer: D) More than zero. 15. Which of the following is true for variable names in python? A) Unlimited Length. B) All private members must have leading and trailing underscores. C) Underscores and ampersand are only two special characters allowed. D) None of these. Show Answer Correct Answer: A) Unlimited Length. 16. In the pyton example x = 9, x is the A) Value. B) Variable. C) Wrong answer. D) Multiplication. Show Answer Correct Answer: B) Variable. 17. Any number is True, except 1. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 18. What is the output from the following lines of code?a = [2, 4, 8]a[2] = 6print(a) A) [2, 4, 8]. B) [2, 6, 8]. C) [2, 4, 6]. D) [6, 4, 8]. Show Answer Correct Answer: C) [2, 4, 6]. 19. Choose the correct output of the following code.for i in range(10, 15):print(i) A) 101112131415. B) 1011121314. C) 1112131415. D) 11121314. Show Answer Correct Answer: B) 1011121314. 20. Look at the following code:age = "23"age = age + 1print (age)What is the result of this code? A) 23. B) 24. C) 23 + 1. D) An error message. Show Answer Correct Answer: D) An error message. 21. How many times does a for loop iterate if the range is (1, 5)? A) 4. B) 2. C) 1. D) 3. Show Answer Correct Answer: A) 4. 22. What is the latest stable version of Python as of 2021? A) Python 3.8. B) Python 3.7. C) Python 4.0. D) Python 3.9. Show Answer Correct Answer: D) Python 3.9. 23. Which operator checks if a value is equal to another value? A) +. B) =. C) ==. D) !=. Show Answer Correct Answer: C) ==. 24. Which character is used to denote long integer? A) D. B) N. C) LO. D) L. Show Answer Correct Answer: D) L. 25. How do you tell that Python that you are going to use the turtle library? A) Import turtle. B) Turtle import. C) Import turtle. D) From turtle import. Show Answer Correct Answer: C) Import turtle. ← PreviousNext →Related QuizzesClass 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 1Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 2Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 3Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 4Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 5Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 6Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 7Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 8Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 9Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 10 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books