This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 39 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 39 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Operator aritmatika apa yang digunakan untuk melakukan perkalian dalam Python? A) +. B) -. C) /. D) *. Show Answer Correct Answer: D) *. 2. A syntax error in your code means: A) You have not used enough characters. B) There was no defined index. C) Python can't find a file to pass the code to. D) There is an error with your typing and code structure. Show Answer Correct Answer: D) There is an error with your typing and code structure. 3. Which career involves using Python to analyze and visualize data? A) Florist. B) Data analyst. C) Hairdresser. D) Librarian. Show Answer Correct Answer: B) Data analyst. 4. What type of data is the following?:X = "195.67" A) Float. B) String. C) Boolean. D) Integer. Show Answer Correct Answer: B) String. 5. What is the purpose of variables in Python? A) To store data. B) To print output. C) To run programs. D) To create functions. Show Answer Correct Answer: A) To store data. 6. A ..... is set of instructions that is given to a computer to perform a task. A) Identifier. B) Variable. C) Program. D) Data. Show Answer Correct Answer: C) Program. 7. What does the 'count()' method do in a Pandas Series? A) Returns the number of non-NaN values in the Series. B) Returns the total number of elements in the Series. C) Returns the number of NaN values in the Series. D) Returns the first element of the Series. Show Answer Correct Answer: A) Returns the number of non-NaN values in the Series. 8. On which operating system can you use Python? A) Mac OS. B) Windows. C) Linux. D) All of these are true. Show Answer Correct Answer: D) All of these are true. 9. The letter 'U' is which data type? A) String. B) Real/Decimal/Float. C) Integer. D) Boolean. E) Char. Show Answer Correct Answer: E) Char. 10. How do you keep track of different versions of your code? A) Version control. B) Python. C) Essential coding. D) 3%. Show Answer Correct Answer: A) Version control. 11. Tuples are ..... A) Mutable. B) Immutable. C) Both Mutable and Immutable. D) Allow modifications. Show Answer Correct Answer: B) Immutable. 12. Which control structure is used to repeat a block of code a certain number of times? A) If. B) For. C) Def. D) Print. Show Answer Correct Answer: B) For. 13. What is the result of the following code? "'pythonname = "Bob"print(name.upper()) "' A) Bob. B) BOB. C) Bob. D) Error. Show Answer Correct Answer: B) BOB. 14. What will be the output of print(5 > 3 and 3 < 2)? A) True. B) 5. C) 3 > 2. D) False. Show Answer Correct Answer: D) False. 15. What is the word used to display numbers and text on the screen? A) Input. B) Output. C) Print. D) Command. Show Answer Correct Answer: C) Print. 16. What is the order in which a computer solves a problem? A) Output, Process, Input. B) Input, Process, Output. C) Process, Output, Input. D) Process, Input, Output. Show Answer Correct Answer: B) Input, Process, Output. 17. What will the following code print? "'pythonx = 5if x > 3:print("Hello")else:print("Goodbye") "' A) Goodbye. B) Hello. C) Error. D) Nothing. Show Answer Correct Answer: B) Hello. 18. What is the purpose of Anaconda? A) Machine learning only. B) Data science and machine learning. C) Web development. D) Game development. Show Answer Correct Answer: B) Data science and machine learning. 19. Which of the following is a correct way to print a message in Python? A) 'echo "Hello"'. B) 'print("Hello")'. C) 'printf("Hello")'. D) 'write("Hello")'. Show Answer Correct Answer: B) 'print("Hello")'. 20. The instructions in an algorithm, when expressed precisely in English, ..... A) Can only be carried out by humans. B) Can only be carried out by computers. C) Can be carried out by both humans and computers. D) None of the above. Show Answer Correct Answer: A) Can only be carried out by humans. 21. Which of these will show an error in Python? A) Print("Wow!"). B) Print(5 + 2). C) Print(Hello). D) Print(4 * 3). Show Answer Correct Answer: C) Print(Hello). 22. Which operation is possible with tuples but not with lists in Python? A) Using as dictionary keys. B) Appending elements. C) Sorting in place. D) Extending with another sequence. Show Answer Correct Answer: A) Using as dictionary keys. 23. Koju funkciju koristiti za unos u Pythonu? A) Koristite funkciju 'read()'. B) Koristite funkciju 'get()'. C) Koristite funkciju 'input()'. D) Koristite funkciju 'scan()'. Show Answer Correct Answer: C) Koristite funkciju 'input()'. 24. Which of the following is NOT allowed in Python variable names? A) Underscore ( ). B) Digits (after the first character). C) Spaces. D) Lowercase letters. Show Answer Correct Answer: C) Spaces. 25. What is the correct way to define a function in Python? A) Function greet():. B) Define greet():. C) Def greet():. D) Create greet():. Show Answer Correct Answer: C) Def greet():. ← 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