This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 85 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 85 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. X=6y=4print(x, y) A) 6, 4. B) 4, 6. C) 6 4. D) 4 6. Show Answer Correct Answer: C) 6 4. 2. Which of the options is not an example of a text-based programming language? A) Java. B) Blockly. C) Python. D) Swift. Show Answer Correct Answer: B) Blockly. 3. Which one is the correct assigning of value 100 to the variable x A) X = 100. B) X << 100. C) X <-100. D) X:=100. Show Answer Correct Answer: A) X = 100. 4. How do you write a comment in Python? A) Use '//' to write a comment in Python. B) Use '/*' to start a comment and '*/' to end it in Python. C) Use '#' to write a comment in Python. D) Use '/* comment */' for comments in Python. Show Answer Correct Answer: C) Use '#' to write a comment in Python. 5. Which operator is used for string concatenation in Python? A) +. B) &. C) . D) *. Show Answer Correct Answer: A) +. 6. How do you create an empty dictionary in Python? A) \{\}. B) []. C) (). D) "". Show Answer Correct Answer: A) \{\}. 7. What does the subprogram turtle.setposition(x, y) do? A) Turns the turtle to a specific angle. B) Fills the shape with a color. C) Positions the turtle at specific coordinates. D) Resets the drawing canvas. Show Answer Correct Answer: C) Positions the turtle at specific coordinates. 8. Which of the following is the correct way to print a string in Python? A) Echo 'Hello World'. B) Print 'Hello World'. C) Print("Hello World"). D) System.out.println('Hello World'). Show Answer Correct Answer: C) Print("Hello World"). 9. Features of Python A) Easy to learn and read. B) Portable. C) GUI programming. D) All of the above. Show Answer Correct Answer: D) All of the above. 10. An algorithm can be best described as: A) A representation of symbols. B) A sequence of steps to solve a problem. C) A computer program. D) A data storage method. Show Answer Correct Answer: B) A sequence of steps to solve a problem. 11. Which generation of computers started using Integrated Circuit based hardware? A) First Generation. B) Second Generation. C) Third Generation. D) Fourth Generation. Show Answer Correct Answer: C) Third Generation. 12. What does the percentage sign-%-do in Python? A) Rounding-down division. B) Normal division. C) Gives the remainder of a division between two values. D) Addition. Show Answer Correct Answer: C) Gives the remainder of a division between two values. 13. To display the following on screenHello World!the following command should be used: A) Print(Hello World!). B) Print("Hello World!"). C) Print("Hello World" + !). D) Print"(Hello World!)". Show Answer Correct Answer: B) Print("Hello World!"). 14. X = 10print(type(x)) A) Str. B) Int. C) Float. D) Bool. Show Answer Correct Answer: B) Int. 15. Str1="6/4"print("str1") A) 1. B) 6/4. C) 1.5. D) Str1. Show Answer Correct Answer: D) Str1. 16. What is a global variable? A) A variable that can only be accessed within a function. B) A variable that is accessible throughout the program. C) A variable that holds multiple values. D) A variable that is defined in a class. Show Answer Correct Answer: B) A variable that is accessible throughout the program. 17. What is the result of the following operation?print(7 % 3) A) 1. B) 2. C) 3. D) 4. Show Answer Correct Answer: A) 1. 18. Which statement is adding remainder of 8 divided by 3 to the product of 5 and 6? A) 8 // 3 + 6.5. B) 8/3 + 5 * 6. C) None of the above. D) 8 % 3 + 5 * 6. Show Answer Correct Answer: D) 8 % 3 + 5 * 6. 19. Name two features of Python. A) 1. Simple and readable syntax; 2. Extensive standard library. B) No support for object-oriented programming. C) Limited standard library. D) Complicated and verbose syntax. Show Answer Correct Answer: A) 1. Simple and readable syntax; 2. Extensive standard library. 20. What does the oval shape in a flowchart represent? A) Start and end point. B) Process. C) Input and output. D) Decision. Show Answer Correct Answer: A) Start and end point. 21. What is the result of print(10-3)? A) 7. B) 13. C) 10-3. D) 3. Show Answer Correct Answer: A) 7. 22. How do websites use Python? A) To bake cookies. B) To create web pages. C) To paint walls. D) To sew clothes. Show Answer Correct Answer: B) To create web pages. 23. A collection of items stored in one variable is called: A) Integer. B) String. C) List. D) Keyword. Show Answer Correct Answer: C) List. 24. Which of the following is not key feature of Python? A) Easy to use. B) Expressive. C) Efficient. D) Extensible. Show Answer Correct Answer: C) Efficient. 25. Str() can be used on a number to convert the number to A) A floating point number. B) A boolean. C) A string. D) A variable. Show Answer Correct Answer: C) A string. ← 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