This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 41 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 41 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. What is the purpose of using functions in Python? A) To execute a specific task in the program. B) To do a specific job. C) To organize and store files. D) To enhance the performance of the program. Show Answer Correct Answer: B) To do a specific job. 2. What is a common problem that can occur with recursive functions? A) Slow performance. B) Lack of flexibility. C) Complex syntax. D) Infinite recursion. Show Answer Correct Answer: D) Infinite recursion. 3. What programme do we use? A) IDLE. B) POWERPOINT. C) WORD. D) INTERNET. Show Answer Correct Answer: A) IDLE. 4. What keyword is used in Python to handle exceptions? A) Catch. B) Handle. C) Check. D) Try. Show Answer Correct Answer: D) Try. 5. High-level languages were developed because: A) Computers couldn't understand machine language. B) Machine language was too fast. C) Machine language was difficult for average programmers to understand. D) High-level languages are more efficient. Show Answer Correct Answer: C) Machine language was difficult for average programmers to understand. 6. What will be the result of the following expression?not (5 > 3) A) True. B) False. C) 5. D) Error. Show Answer Correct Answer: B) False. 7. What type of number is 'height = 5.8'? A) Float. B) Integer. C) String. D) None of the above. Show Answer Correct Answer: A) Float. 8. What is the correct way to start a comment in Python? A) //. B) . C) #. D) **. Show Answer Correct Answer: C) #. 9. What is Float? A) Whole number. B) Decimal number. C) Text. D) Code. Show Answer Correct Answer: B) Decimal number. 10. What is the output of print(10 == 10)? A) 10. B) True. C) None. D) True and False. E) False. Show Answer Correct Answer: B) True. 11. What software do you use to write a program in Python? A) Word. B) IDLE. C) Powerpoint. D) Excel. Show Answer Correct Answer: B) IDLE. 12. What will be the output of print('Hello' + ' World')? A) Hello World. B) Hello World!. C) Hello, World. D) HelloWorld. Show Answer Correct Answer: A) Hello World. 13. How would you convert a string input to an integer in Python? A) Int(input("Enter a number: ")). B) Str(input("Enter a number: ")). C) Float(input("Enter a number: ")). D) Bool(input("Enter a number: ")). Show Answer Correct Answer: A) Int(input("Enter a number: ")). 14. What is the correct way to start a for loop in Python? A) For variable in iterable[]. B) For (variable:iterable). C) For variable in iterable\{\}. D) For variable in iterable:. Show Answer Correct Answer: D) For variable in iterable:. 15. Library Pandas digunakan untuk ..... A) Membuat grafik. B) Menyimpan data array. C) Analisis dan manipulasi data. D) Membuat antarmuka GUI. Show Answer Correct Answer: C) Analisis dan manipulasi data. 16. A person who writes a python program is called a- A) Developer. B) Programmer. C) Coder. D) Engineer. Show Answer Correct Answer: B) Programmer. 17. Which of the following is NOT a valid way to concatenate strings in Python? A) "Hello" + "World". B) "Hello" "World". C) "Hello" * "World". D) "Hello" + '' '' + "World". Show Answer Correct Answer: C) "Hello" * "World". 18. What does print(10 % 3) output? A) 3. B) 1. C) 0. D) 10. Show Answer Correct Answer: B) 1. 19. What is a Python class? A) A function to create an object. B) A template (blueprint) for creating objects. C) A procedure related to an object. D) A process that repeats are directed. Show Answer Correct Answer: B) A template (blueprint) for creating objects. 20. In game development, what role can Python play? A) Creating game stories. B) Programming game functions. C) Making game boxes. D) Selling game supplies. Show Answer Correct Answer: B) Programming game functions. 21. What is the output of the following code? print(3+5*2) A) 16. B) 13. C) 10. D) 7. Show Answer Correct Answer: B) 13. 22. How do you access a value in a dictionary? A) Access values with dict[key] only if the key exists. B) Use dict[key] or dict.get(key) to access a value in a dictionary. C) Use dict.access(key) to find a value in a dictionary. D) Use dict.value(key) to retrieve a value. Show Answer Correct Answer: B) Use dict[key] or dict.get(key) to access a value in a dictionary. 23. Name = "teacher kim"new ..... name = nameFollowing variable declaration above, we created how many objects and how many references? A) Two objects, one reference. B) One object, one reference. C) Two objects, two references. D) One object, two references. Show Answer Correct Answer: D) One object, two references. 24. Manakah di antara berikut ini yang merupakan tipe data yang dapat diubah (mutable) di Python? A) Tuple. B) Dictionary. C) List. D) Set. Show Answer Correct Answer: C) List. 25. Which of the following is used to format strings in Python? A) Style(). B) Format(). C) Output(). D) Print(). Show Answer Correct Answer: B) Format(). ← 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