This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 9 Practical Work Python Exercises – Quiz 8 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 8 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. FOR loops are A) Loops which run an unknown number of times. B) Loops which run for a specific number of times. C) The same as if statements. D) Not part of programming. Show Answer Correct Answer: B) Loops which run for a specific number of times. 2. Converts a number to a string A) Str(). B) Int(). C) ParseInt(). D) Convert. Show Answer Correct Answer: A) Str(). 3. Which of these is NOT a loop in python? A) For loop. B) While loop. C) Nested loop. D) If loop. Show Answer Correct Answer: D) If loop. 4. 30 == 3.0 A) TRUE. B) FALSE. C) All the above. D) None of the above. Show Answer Correct Answer: B) FALSE. 5. If you wished a loop to repeat 3 types whwt should you use? A) For counter in range(0, 5):. B) For counter in range(1.3):. C) For counter in range(0.3):. D) None of the above. Show Answer Correct Answer: C) For counter in range(0.3):. 6. What is missing from this input statement?input ("What is your name? ") A) The answer. B) A variable to store the input. C) An output. D) Print =. Show Answer Correct Answer: B) A variable to store the input. 7. When you want to hide the turtle pointer on the screen which command should you use? A) Hide turtle( ). B) Remove turtle( ). C) Hideturtle( ). D) Turtle.disappear( ). Show Answer Correct Answer: C) Hideturtle( ). 8. A pixel is A) A set of instructions written in a language computers can understand. B) A single image in a moving sequence for animation, video, or computer graphics. C) A value passed to a function. D) The small dots of color that make up images on a computer screen. Show Answer Correct Answer: D) The small dots of color that make up images on a computer screen. 9. The objects that the variable refers to A) Method. B) Value. C) While loop. D) Syntax. Show Answer Correct Answer: B) Value. 10. Pieces of code that only run "under certain conditions": A) Conditional statements. B) Control flow statments. C) Syntax. D) Variables. Show Answer Correct Answer: A) Conditional statements. 11. Which operator is known as ternary operator in python? A) Assignment. B) Conditional. C) Relational. D) Comparative. Show Answer Correct Answer: B) Conditional. 12. Which keyword is used for an infinite loop or ITERATION? A) Else. B) If answer == "right":. C) While True:. D) Elif. Show Answer Correct Answer: C) While True:. 13. Eval() A) Makes a math equation. B) Figures out the value of the thing we typed. C) Is a comment. D) Is a string. Show Answer Correct Answer: B) Figures out the value of the thing we typed. 14. The data structure which is a mutable ordered sequence of elements is called A) Built in. B) Tuple. C) List. D) Derived data. Show Answer Correct Answer: C) List. 15. What is the correct term for this symbol?" '' A) Quotation marks. B) Bunny fingers. C) Parenthesis. D) Exclamation mark. Show Answer Correct Answer: A) Quotation marks. 16. Which is known as simple assignment operator? A) ==. B) =. C) +=. D) #. Show Answer Correct Answer: B) =. 17. What does this code do? print("Hello world!") A) Displays 'Hello world!' in the shell window. B) Sends 'Hello world!' to the printer. C) Waits for the user to type in 'Hello world!'. D) Displays 'hello, world.' in the shell window. Show Answer Correct Answer: A) Displays 'Hello world!' in the shell window. 18. Returns the remainder from division. A) Boolean. B) Modulus. C) Variables. D) Exponents. Show Answer Correct Answer: B) Modulus. 19. In a loop, as long as the user enters an answer that is "true, " A) The command repeats itself. B) The program ends. C) The programs starts over. D) The user gains 10 points. Show Answer Correct Answer: A) The command repeats itself. 20. What is the result of my ..... list[2:5] if my ..... list = [1, 2, 3, 4, 5, 6, 7] in Python? A) [2, 3, 4]. B) [1, 2, 3]. C) [4, 5, 6]. D) [3, 4, 5]. Show Answer Correct Answer: D) [3, 4, 5]. 21. What does the following comparison operator "==" represent in Python programming? A) Equal to. B) Assignment. C) Allocation. D) Not equal to. Show Answer Correct Answer: A) Equal to. 22. What will the output be from the following Python code?print(9/3) A) 3. B) 3.0. C) 9/3. D) SyntaxError. Show Answer Correct Answer: B) 3.0. 23. What is the correct name for this symbol?== A) Assignment. B) Equal to. C) Greater than. D) Less than. Show Answer Correct Answer: B) Equal to. 24. Select the illegal variable name A) 2my-first name = "John". B) My-firstname = "John". C) My-first name = "John". D) My2-first name = "John". Show Answer Correct Answer: A) 2my-first name = "John". 25. Identify the meaningful variable name to store high score of a student? A) S. B) Hs. C) Score. D) HighScore. Show Answer Correct Answer: D) HighScore. ← 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 9Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 10Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 11 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books