This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 9 Practical Work Python Exercises – Quiz 30 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 30 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. To make the turtle move forward, which command is used? A) Turtle.penup(). B) Turtle.forward(). C) Turtle.left(). D) Turtle.backward(). Show Answer Correct Answer: B) Turtle.forward(). 2. What is the function of the code:amount = int(input("Enter a conversion into pounds:))currency = input ("press 1 for indian rupees, 2 for Chinese yuan or 0 to exit:") A) To find the total amount of currency altogether. B) To calculate and convert the exchange rates. C) All the above. D) None of the above. Show Answer Correct Answer: B) To calculate and convert the exchange rates. 3. What controls a variable's scope? A) The location where it is first initialized within your code. B) The comment you place to the right of the variable name. C) The capitalization you select for the letters in your function name. D) The length of your variable name. Show Answer Correct Answer: A) The location where it is first initialized within your code. 4. Can we use the "else" clause for loops?for example:for i in range(1, 5):print(i)else:print("this is else block statement" ) A) YES. B) NO. C) All the above. D) None of the above. Show Answer Correct Answer: A) YES. 5. If the coding steps are in the incorrect order, the computer can still execute the program. A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 6. Which if the values below return TRUE if executed? A) 10 > 3. B) 10 < 3. C) 10 >< 3. D) 10 <> 3. Show Answer Correct Answer: A) 10 > 3. 7. Integers are ..... and floats are ..... A) Whole numbers and exponents. B) Powers and fractions. C) Fractions and whole numbers. D) Whole numbers and decimal numbers. Show Answer Correct Answer: D) Whole numbers and decimal numbers. 8. What does the 'turtle' represent in Python? A) A program. B) A person. C) A pen. D) A drawing. Show Answer Correct Answer: C) A pen. 9. What data type represents a whole number? A) Float. B) Int. C) Boolean. D) String. Show Answer Correct Answer: B) Int. 10. Which of the following is constructed by placing expressions within square brackets? A) Tuples. B) Lists. C) Classes. D) Quadrats. Show Answer Correct Answer: B) Lists. 11. Which of these are keyword? A) In. B) Is. C) Assert. D) All of the above. Show Answer Correct Answer: D) All of the above. 12. What type of data is:a=[(1, 1), (2, 4), (3, 9)]? A) Array of tuples. B) List of tuples. C) Tuples of lists. D) Invalid type. Show Answer Correct Answer: B) List of tuples. 13. Enemy = hero.findNearestEnemy( )in the variable enemy what is being stored? A) The name of the nearest enemy if present. B) The nearest enemy object if present. C) It is a conditional to check if enemy is present. D) Hero.findNearestEnemy( ) is a method to find the nearest enemy. Show Answer Correct Answer: A) The name of the nearest enemy if present. 14. Which commands do we need to fill a shape that we have just drawn? A) T.begin fill () and t.end fill(). B) T.begin() and t.fill(). C) T.fill () and t.fill(). D) T.begin() and t.end(). Show Answer Correct Answer: A) T.begin fill () and t.end fill(). 15. Which method will remove an element the Dictionary data type? A) .pop(). B) .discard(). C) .remove(). D) None of the above. Show Answer Correct Answer: A) .pop(). 16. How would you create a program to display "Hello World!" A) Print(Hello World!. B) Input("Hello World!"). C) Print("Hello World!"). D) Print(Hello World!). Show Answer Correct Answer: C) Print("Hello World!"). 17. For string symbol + means ..... A) Addition. B) Swapp. C) Concatenation. D) Multiplication. Show Answer Correct Answer: C) Concatenation. 18. What is the term for a list within another list in Python? A) Sub list. B) Nested list. C) Listception. D) Double list. Show Answer Correct Answer: B) Nested list. 19. If p=25, what is p**2? A) 50. B) 125. C) 600. D) 625. Show Answer Correct Answer: D) 625. 20. To solve a problem that requires the user to enter 10 numbers would use what type of iteration? A) While loop. B) For loop. C) Variable. D) Selection. Show Answer Correct Answer: B) For loop. 21. In Python, to have text stated for the user to see, we use: A) '' ''. B) % %. C) ( ). D) ??. Show Answer Correct Answer: A) '' ''. 22. ..... method adds one list at the end of another list. A) Extend( ). B) Append( ). C) Insert( ). D) None of the above. Show Answer Correct Answer: A) Extend( ). 23. How do i remove the item "juice" from a list? A) Variable.pop("juice"). B) Variable.delete("juice"). C) Variable.remove("juice"). D) Variable=variable- "juice". Show Answer Correct Answer: C) Variable.remove("juice"). 24. Look at the following code:name = input ("What is your name? ")print (name)What would be printed from the print command? A) Whatever the user wrote. B) Name. C) Andre. D) What is your name?. Show Answer Correct Answer: A) Whatever the user wrote. 25. Which of the following commands will create a list? a) list1 = list() b) list1 = []. c) list1 = list([1, 2, 3]) d) all of the mentioned A) List1 = list(). B) List1 = []. C) List1 = list([1, 2, 3]). D) All of the mentioned. Show Answer Correct Answer: D) All of the mentioned. ← 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