This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 9 Practical Work Python Exercises – Quiz 35 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 35 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. If a function named "mystery" is defined as taking no parameters, how would you call that function from your code? A) #mystery. B) Mystery[]. C) Mystery(). D) Mystery. Show Answer Correct Answer: C) Mystery(). 2. What is the order of precedence in python?$^{i) Parentheses}$$^{ii) Exponential}$$^{iii) Multiplication}$$^{iv) Division}$$^{v) Addition}$$^{vi) Subtraction}$ A) I, ii, iii, iv, v, vi. B) I, ii, iii, iv, v, vi. C) Ii, i, v, iii, v, vi. D) I, ii, iii, iv, v, vi. Show Answer Correct Answer: A) I, ii, iii, iv, v, vi. 3. In programming, lists are often known as ..... A) Arrays. B) Elements. C) Indexes. D) Data. Show Answer Correct Answer: A) Arrays. 4. Who manages the development of Python? A) Python Software Foundation (PSF). B) Guido van Rossum. C) Python Community. D) Python Development Team. Show Answer Correct Answer: A) Python Software Foundation (PSF). 5. What is the syntax to check if a value is greater than or equal to another value in Python? A) >. B) >=. C) <. D) ==. Show Answer Correct Answer: B) >=. 6. What is the output of program below?mariana ..... islands = ['Guam', 'Saipan', 'Tinian', 'Rota']print(mariana ..... islands[-1]) A) Guam. B) Saipan. C) Tinian. D) Rota. Show Answer Correct Answer: D) Rota. 7. Look at the following code:age = 23age = float(age)What does the float() function do to the data inside age? A) Changes the string to an int. B) Changes the int to a string. C) Adds a decimal point (23.0). D) Does nothing. Show Answer Correct Answer: C) Adds a decimal point (23.0). 8. A FOR loop is ..... A) A COUNT controlled loop. B) A CONDITION controlled loop. C) All the above. D) None of the above. Show Answer Correct Answer: A) A COUNT controlled loop. 9. What would be printed to the screen?x, y, z = "Orange", "Banana", "Cherry"print(z) A) Orange. B) Banana. C) Cherry. D) Orange, Banana, Cherry. Show Answer Correct Answer: C) Cherry. 10. A data type consisting of positive and negative whole numbers A) Integer. B) Float. C) String. D) Boolean. Show Answer Correct Answer: A) Integer. 11. Choose the correct data type:0.25 A) Character. B) String. C) Integer. D) Real/Float. E) Boolean. Show Answer Correct Answer: D) Real/Float. 12. You write a program where the user types how many apples they want to buy. The program calculates the total cost and displays it on the screen in pounds. What is the output? A) NumberOfApples (integer). B) TotalPrice = numberOfApples*25/100. C) TotalPrice (float). D) TotalPrice = numberOfApples. Show Answer Correct Answer: C) TotalPrice (float). 13. Choose the correct data type:Height (in metres) Example:1.64 A) Character. B) String. C) Integer. D) Real/Float. E) Boolean. Show Answer Correct Answer: C) Integer. 14. ..... data type contain a set of characters (text) or word such as Hello, Ali, Car Type etc. A) Int. B) Float. C) Char. D) String. Show Answer Correct Answer: D) String. 15. Python correct naming convention for variables is? A) New user25. B) NewUser25. C) 25 new user. D) 25NewUser. E) NEWUSER25. Show Answer Correct Answer: A) New user25. 16. What is the purpose of the else statement in a for loop? A) To specify a block of code to be executed before the loop starts. B) To specify a block of code to be executed if the loop completes normally. C) To specify a block of code to be executed if the loop does not complete normally. D) To specify a block of code to be executed after each iteration of the loop. Show Answer Correct Answer: B) To specify a block of code to be executed if the loop completes normally. 17. What will be the output shape of the following Python code?import turtlet=turtle.Pen()for i in range(0, 4):t.forward(100)t.left(120) A) Square. B) Rectange. C) Triangle. D) Kite. Show Answer Correct Answer: C) Triangle. 18. True or False:There are no symbols which can be used in a variable name. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 19. In which language is Python written? A) C++. B) Python. C) C. D) None of these. Show Answer Correct Answer: C) C. 20. Which of the following is not a comparison operator? A) <. B) >. C) ==. D) !==. Show Answer Correct Answer: D) !==. 21. Numbers = [1, 3, 5, 7]Which of the following code inserts 9 into the list above at index 2 A) Numbers.insert(2, 9). B) Numbers.insert(1, 9). C) Numbers.insert(3, 9). D) None of the above. Show Answer Correct Answer: A) Numbers.insert(2, 9). 22. Str="computer"print(str[-6:-1]) A) Mpute. B) Ompute. C) Mputer. D) Mputr. Show Answer Correct Answer: A) Mpute. 23. How do you write a program in Python? A) Using Word. B) Using IDLE. C) Using Powerpoint. D) Using Excel. Show Answer Correct Answer: B) Using IDLE. 24. A straight line from the center to the circumference of a circle or sphere is the A) Diameter. B) Radius. C) Pi. D) Chord. Show Answer Correct Answer: B) Radius. 25. What is the keyword needed to repeat code (iterate) in Python? A) For. B) If. C) Input. D) Print. Show Answer Correct Answer: A) For. ← 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