This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 71 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 71 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Alasan utama menggunakan Jupyter Notebook adalah karena ..... A) Tidak bisa dijalankan offline. B) Tidak mendukung format lain. C) Mudah digunakan dan bisa dikonversi ke berbagai format. D) Tidak mendukung bahasa Python karena tidan singkron dengan data. Show Answer Correct Answer: C) Mudah digunakan dan bisa dikonversi ke berbagai format. 2. Which tool is used in the class for writing Python code? A) Google Colab. B) VSCode. C) Jupyter Notebook. D) PyCharm. Show Answer Correct Answer: A) Google Colab. 3. What is a variable in programming? A) The output of a program. B) A type of error. C) A name given to a value that can be used and changed in a program. D) A number that never changes. Show Answer Correct Answer: C) A name given to a value that can be used and changed in a program. 4. What is mentioned as an additional advantage of Python in terms of obtaining, installing, and deploying? A) Python is expensive. B) Python is closed source. C) Python is free, open, and multiplatform. D) None of the above. Show Answer Correct Answer: C) Python is free, open, and multiplatform. 5. What will be the output after the following statements?a = 4*3**2 print(a) A) 32. B) 144. C) 36. D) 24. Show Answer Correct Answer: C) 36. 6. What happens if you pass more arguments than the number of parameters in a function? A) It raises an error. B) It ignores the extra arguments. C) It returns None. D) It stores extra arguments for later use. Show Answer Correct Answer: A) It raises an error. 7. Apa fungsi yang digunakan untuk membaca input dari pengguna di Python? A) Read(). B) Get input(). C) Fetch input(). D) Input(). Show Answer Correct Answer: D) Input(). 8. Identify the control structure used in the following code:for i in range(5):print(i) A) Selection. B) Iteration. C) Sequence. D) None of the above. Show Answer Correct Answer: B) Iteration. 9. How do you rename a module during import? A) From module name as alias name. B) Import alias name from module name. C) From module name rename alias name. D) Import module name as alias name. Show Answer Correct Answer: D) Import module name as alias name. 10. How can you check for missing values in a Pandas DataFrame df? A) Df.hasna(). B) Df.isnull(). C) Df.check null(). D) Df.null(). Show Answer Correct Answer: B) Df.isnull(). 11. Which value is an Integer? A) 64. B) "cat". C) True. D) 0.5. Show Answer Correct Answer: A) 64. 12. Mengapa data scientist perlu belajar pemrograman? A) Untuk mengolah data dengan lebih efisien dan efektif. B) Untuk membuat visualisasi data yang menarik dan informatif. C) Untuk menerapkan metode analisis dan pemodelan data yang sesuai. D) Semua jawaban benar. Show Answer Correct Answer: D) Semua jawaban benar. 13. What will the following code result in:name = "Alison" number = len(name) print(number) A) 4. B) 5. C) 6. D) 7. Show Answer Correct Answer: C) 6. 14. What is the order of precedence in python? A) Parentheses, Exponential, Multiplication, Addition, Division, Subtraction. B) Parentheses, Exponential, Multiplication, Division, Addition, Subtraction. C) Exponential, Parentheses, Division, Multiplication, Addition, Subtraction. D) Exponential, Parentheses, Multiplication, Division, Addition, Subtraction. Show Answer Correct Answer: B) Parentheses, Exponential, Multiplication, Division, Addition, Subtraction. 15. Select the valid Octal integer literals A) 0836. B) 7976. C) 07362. D) 0x1726. Show Answer Correct Answer: C) 07362. 16. Loop for disebut counted loop karena ..... A) Jumlah pengulangannya sudah diketahui. B) Mengulang tanpa batas. C) Tidak memiliki indeks karena jarak nya sangat jauh dari kode tersebut. D) Harus menggunakan angka genap. Show Answer Correct Answer: A) Jumlah pengulangannya sudah diketahui. 17. How is 2 represented in binary? A) 000. B) 001. C) 010. D) 011. Show Answer Correct Answer: C) 010. 18. How do you define(assign) variables? A) Var="String". B) Func==Hello. C) Var:123. D) Word= Hello. Show Answer Correct Answer: A) Var="String". 19. Python statements are put into a text file with a ".py" extension. The python interpreter is run, pointed at the file. The program is executed line-by-line and the output is displayed. A) Interactive mode. B) Script mode. C) Sandbox. D) Interpreter. Show Answer Correct Answer: B) Script mode. 20. Which of the following is FALSE about compilers? A) They translate a program written in a high-level language into machine code. B) Compiled code can be used multiple times without recompilation. C) If an error is found in a line, the compiler pauses the translation and prompts the user to correct the error. D) It optimises the code. Show Answer Correct Answer: C) If an error is found in a line, the compiler pauses the translation and prompts the user to correct the error. 21. What is a Boolean value in Python? Give an example. A) True and False are the two Boolean values in Python. B) On and Off. C) Yes and No. D) True and Maybe. Show Answer Correct Answer: A) True and False are the two Boolean values in Python. 22. What will be the output of the following code?x = 5y = 2print(x ** y) A) 10. B) 25. C) 7. D) 52. Show Answer Correct Answer: B) 25. 23. What is the output of the following Python code? print("2" + "5") A) 25. B) 7. C) Error. D) 10. Show Answer Correct Answer: A) 25. 24. What is the purpose of the 'drop()' method in a DataFrame? A) To delete rows or columns from the DataFrame. B) To add new rows to the DataFrame. C) To sort the DataFrame by a specific column. D) To merge two DataFrames together. Show Answer Correct Answer: A) To delete rows or columns from the DataFrame. 25. In the following, x = 7 the x would be considered a(n) A) Command. B) Parameter. C) String. D) Variable. Show Answer Correct Answer: D) Variable. ← 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