This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 58 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 58 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. In Python we can get a part of a list with a A) Slide. B) Slice. C) Piece. D) Cut. Show Answer Correct Answer: B) Slice. 2. Which of the following translators converts high level language into low level language atonce? A) Assembler. B) Compiler. C) C. Interpreter. D) D. None of the above. Show Answer Correct Answer: B) Compiler. 3. What is the data type of the variable 'x' when 'x = 3.14' in Python? A) Int. B) Float. C) Str. D) Bool. Show Answer Correct Answer: B) Float. 4. Which tool can be used to write and run Python code? A) Microsoft Word. B) PyCharm. C) Paint. D) PowerPoint. Show Answer Correct Answer: B) PyCharm. 5. What is the result of the following operation in Python:my ..... list = [1, 2, 3] followed by my ..... list.append(4)? A) [1, 2, 3, 3]. B) [1, 2, 3, 4]. C) [1, 2, 3, 5]. D) [1, 2, 4, 3]. Show Answer Correct Answer: B) [1, 2, 3, 4]. 6. By default, the Python scripts are saved with ..... extension. A) .pyp. B) .pys. C) .py. D) None of the above. Show Answer Correct Answer: C) .py. 7. What is the input name for 'true/false' inputs? A) Bool(boolean). B) Boo(boolean). C) Float(float). D) Int(boolean). Show Answer Correct Answer: A) Bool(boolean). 8. How do you check if your age is above 18 or not A) If age>=18:print("I am an adult")else:print("I am a minor"). B) Ifelse age>=18:print("I am an adult")else:print("I am a minor"). C) If age>=18:print("I am a minor")else:print("I am an adult"). D) Elif age>=18:print("I am an adult")else:print("I am a minor"). Show Answer Correct Answer: C) If age>=18:print("I am a minor")else:print("I am an adult"). 9. Salah satu alat yang dapat digunakan untuk menulis kode Python adalah ..... A) NetBeans. B) Google Collab. C) Visual Basic. D) MS Access. Show Answer Correct Answer: B) Google Collab. 10. In the statement 'x = 5', what is '5'? A) A value. B) A function. C) A loop. D) A variable. Show Answer Correct Answer: A) A value. 11. Which built-in function is used to write output to the screen? A) Input(). B) Read(). C) Write(). D) Print(). Show Answer Correct Answer: D) Print(). 12. Which of the following is invalid variable name? A) Sum1. B) Num 1. C) N1. D) Num 1. Show Answer Correct Answer: B) Num 1. 13. Which symbol is used for multiplication in Python? A) *. B) X. C) X. D) #. Show Answer Correct Answer: A) *. 14. Write the output of the following code:a=9; x=str(a); b=5; y=str(b); x+y A) 14. B) 95. C) None of the above. D) 9, 5. Show Answer Correct Answer: B) 95. 15. What is the output of the following code? number = int("10") + 5 print(number) A) 15. B) 105. C) 10. D) 5. Show Answer Correct Answer: A) 15. 16. You have to buy Python. A) True. B) False. C) No sure. D) None of the above. Show Answer Correct Answer: B) False. 17. What will be the output of the following code? "'pythonname = input("Enter your name: ")print("Hello, ", name) "' A) Hello, Enter your name:. B) Enter your name:Hello,. C) It asks for your name and then prints Hello,. D) Error. Show Answer Correct Answer: C) It asks for your name and then prints Hello,. 18. What is the significance of the '#' symbol in Python? A) It is used for multiplication. B) It denotes a variable. C) It starts a comment. D) It indicates a function. Show Answer Correct Answer: C) It starts a comment. 19. What is the purpose of arithmetic expressions in programming? A) To display messages. B) To translate programming languages. C) To execute instructions. D) To calculate values. Show Answer Correct Answer: D) To calculate values. 20. Which keyboard key is used to run Python programs? A) F6. B) F5. C) F + n. D) Ctrl + r. Show Answer Correct Answer: B) F5. 21. What is the significance of human-readable code in programming? A) It is the only type of code that can be executed. B) It allows computers to run programs faster. C) It makes it easier for humans to understand and write code. D) It eliminates the need for programming languages. Show Answer Correct Answer: C) It makes it easier for humans to understand and write code. 22. What is the result of the expression 3 + 5 * 2 in Python? A) 16. B) 13. C) 11. D) None of the above. Show Answer Correct Answer: B) 13. 23. What will be the output of the following code? print("My favourite colour is '' + "blue") A) My favourite colour is blue. B) My favourite colour isblue. C) My favourite colour is + blue. D) My favourite colour is. Show Answer Correct Answer: A) My favourite colour is blue. 24. What will be the output of the following code?x = 10y = 3print (x % y) A) 0. B) 1. C) 3. D) 7. Show Answer Correct Answer: B) 1. 25. What is the output of the following code:print(5 + 3)? A) 10. B) 8. C) 6. D) 9. Show Answer Correct Answer: B) 8. ← 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