This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 45 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 45 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. What data type is used to represent true or false values in Python? A) Float. B) Boolean. C) String. D) Integer. Show Answer Correct Answer: B) Boolean. 2. Which function is used to get input from the user in Python? A) Get(). B) Input(). C) Read(). D) Scan(). Show Answer Correct Answer: B) Input(). 3. Python was named after the British television show, ..... A) Monty Circus Python's Flying. B) Monty Python's Flying Circus. C) Monty Flying Circus Python's. D) Monty Python's Circus Flying. Show Answer Correct Answer: B) Monty Python's Flying Circus. 4. Which of these is correct in Python? A) Print Hello. B) Print(Hello). C) Print("Hello"). D) Print("Hello"). Show Answer Correct Answer: C) Print("Hello"). 5. What is the radius of the circles used to draw a slinky? A) 35. B) 30. C) 20. D) 25. Show Answer Correct Answer: A) 35. 6. If you have a syntax error will the code run? A) Yes. B) No. C) All the above. D) None of the above. Show Answer Correct Answer: B) No. 7. What is the purpose of the 'input()' function in Python? A) To read files. B) To take user input. C) To convert data types. D) To display output. Show Answer Correct Answer: B) To take user input. 8. What is the purpose of the 'break' statement in a loop? A) To continue the loop indefinitely. B) To exit a loop prematurely. C) To skip the current iteration of the loop. D) To pause the loop for a specified time. Show Answer Correct Answer: B) To exit a loop prematurely. 9. How do you start a function in Python? A) Def. B) Function. C) Start. D) Create. Show Answer Correct Answer: A) Def. 10. What is the output of print('I will become a Python Pro')? A) I will become a Python Pro. B) I will become a Pro. C) I will become a Python. D) None of the above. Show Answer Correct Answer: A) I will become a Python Pro. 11. What is the mode available in Python? A) Compilation mode. B) Safe mode. C) Script mode. D) Attractive mode. Show Answer Correct Answer: C) Script mode. 12. How to insert elements at the last in list? A) A = [90]. B) A.pop(90). C) A.append(90). D) A[-1] = 90. Show Answer Correct Answer: C) A.append(90). 13. Which statement about sequential condition checking is correct? A) Python checks top to bottom order. B) Python skips the first condition. C) Python randomly picks a branch. D) Python checks all conditions at once. Show Answer Correct Answer: A) Python checks top to bottom order. 14. What is a run time error? A) An error in the logic of the program. B) An error in the rules of the language. C) An error that causes a program to crash. D) An error in the data type. Show Answer Correct Answer: C) An error that causes a program to crash. 15. Why is indenting used? A) To group steps. B) To make text bold. C) To create bullet points. D) To increase font size. Show Answer Correct Answer: A) To group steps. 16. How many libraries are available for Python? A) Over 300, 000 libraries. B) Over 1 million libraries. C) Less than 100 libraries. D) Around 50, 000 libraries. Show Answer Correct Answer: A) Over 300, 000 libraries. 17. What is the type of []? A) List. B) Tuple. C) Dict. D) Set. Show Answer Correct Answer: A) List. 18. The function used to find the length of a string is: A) Count(). B) Size(). C) Len(). D) Length(). Show Answer Correct Answer: C) Len(). 19. What does the following loop do?for i in range(3):print(i) A) Prints 1, 2, 3. B) Prints 0, 1, 2. C) Prints 0, 1, 2, 3. D) Prints 3. Show Answer Correct Answer: B) Prints 0, 1, 2. 20. Which of the following statements will print "Hello, World!" to the console in Python? A) Print("Hello, World!"). B) Echo "Hello, World!". C) Printf("Hello, World!"). D) System.out.println("Hello, World!"). Show Answer Correct Answer: A) Print("Hello, World!"). 21. The process of linking one thing to another A) Algorithm. B) Function. C) Variable. D) Concatenate. Show Answer Correct Answer: D) Concatenate. 22. An application that contains all the necessary tools needed to write a program is called: A) Text editor. B) Compiler. C) Integrated Development Environment (IDE). D) Python shell. Show Answer Correct Answer: C) Integrated Development Environment (IDE). 23. How many tests are conducted for the theory component of the IC and what is the mark for each test? A) Three tests, each of 20 marks. B) Two tests, each of 25 marks. C) Four tests, each of 15 marks. D) One test of 60 marks. Show Answer Correct Answer: A) Three tests, each of 20 marks. 24. Which symbol is used for comments in Python? A) /*. B) #. C) . D) //. Show Answer Correct Answer: B) #. 25. The result of this code is print ("Welcome to programming") A) It will print this sentence in a paper. B) Welcome to programming. C) Error. D) None of the above. Show Answer Correct Answer: B) Welcome to programming. ← 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