This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 7 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 7 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Which of the following is a built-in function in Python? A) Show(). B) Display(). C) Output(). D) Print(). Show Answer Correct Answer: D) Print(). 2. ..... are written with a decimal point that seprate the integer from the fractional number. A) REAL NUMBER. B) FLOATING POINT NUMBER. C) IRRATIONAL NNUMBER. D) SINK POINT NUMBER. Show Answer Correct Answer: C) IRRATIONAL NNUMBER. 3. What is data input? A) Data that put in to the computer. B) Data that is sent out to the user after processing. C) Data processing. D) None of the above. Show Answer Correct Answer: A) Data that put in to the computer. 4. What type of programming language is Python classified as? A) Interpreted. B) Markup. C) Compiled. D) Low-level. Show Answer Correct Answer: A) Interpreted. 5. What is the purpose of combining variables in Python? A) To delete variables. B) To create loops. C) To concatenate variables to create sentences. D) To compare variables. Show Answer Correct Answer: C) To concatenate variables to create sentences. 6. What does len() do? A) Gives the length. B) Adds numbers. C) Subtracts numbers. D) Multiplies numbers. Show Answer Correct Answer: A) Gives the length. 7. Apa ekstensi file yang benar untuk file Python? A) .pyth. B) Python.file. C) .script. D) .py. Show Answer Correct Answer: D) .py. 8. Whitespace adalah ..... A) Karakter kosong yang digunakan untuk memisahkan kata atau simbol. B) Karakter yang tidak terlihat seperti spasi, tab, atau baris baru. C) Karakter yang digunakan untuk membuat indentasi atau rata kiri pada kode. D) Semua jawaban benar. Show Answer Correct Answer: B) Karakter yang tidak terlihat seperti spasi, tab, atau baris baru. 9. Who developed Python programming language? A) Dennis Ritchie. B) Guido van Rossum. C) James Gosling. D) Bjarne Stroustrup. Show Answer Correct Answer: B) Guido van Rossum. 10. What is the output of print('Python' * 2)? A) Python2. B) PythonPython. C) Python Python. D) PyhtonPython. Show Answer Correct Answer: B) PythonPython. 11. Computer languages that are designed to be used and understood by humans are ..... A) Machine code. B) High-level languages. C) Natural languages. D) Binary code. Show Answer Correct Answer: B) High-level languages. 12. What file extension do Python programs have? A) .txt. B) .java. C) .html. D) .py. Show Answer Correct Answer: D) .py. 13. Which statement creates an empty set in Python? A) \{\}. B) Set(). C) []. D) (). Show Answer Correct Answer: B) Set(). 14. How do you create a list in Python? A) You create a list in Python with the list() function, e.g., my list = list(1, 2, 3). B) You create a list in Python by using parentheses, e.g., my list = (1, 2, 3). C) You create a list in Python using curly braces, e.g., my list = \{1, 2, 3\}. D) You create a list in Python using square brackets, e.g., my list = [1, 2, 3]. Show Answer Correct Answer: D) You create a list in Python using square brackets, e.g., my list = [1, 2, 3]. 15. The CIE marks for the theory component of the IC shall be ..... marks and for the laboratory component ..... marks. A) 30 marks; 20 marks. B) 20 marks; 30 marks. C) 25 marks; 25 marks. D) 40 marks; 10 marks. Show Answer Correct Answer: A) 30 marks; 20 marks. 16. What is Python's logo? A) A robot. B) A cat. C) Two snakes. D) A rocket. Show Answer Correct Answer: C) Two snakes. 17. Which of the following Python commands will display the text "Hello, World!" on the screen? A) Print("Hello, World!"). B) Echo("Hello, World!"). C) Display("Hello, World!"). D) Show("Hello, World!"). Show Answer Correct Answer: A) Print("Hello, World!"). 18. What Python keyword is used to define (create) a new function? A) Func. B) Define. C) Function. D) Def. Show Answer Correct Answer: D) Def. 19. What is the output of the following code?def multiply (x, y = 2):return x * yprint (multiply (4) ) A) 4. B) 8. C) 5. D) Error. Show Answer Correct Answer: B) 8. 20. What does the term "debugging" mean? A) Writing code for a new application. B) Removing unnecessary code. C) Fixing errors in a program. D) Encrypting a program. Show Answer Correct Answer: C) Fixing errors in a program. 21. Which of the following is the correct way to declare a variable in Python? A) Let age = 15. B) Age = 15. C) Int age = 15. D) Variable age = 15. Show Answer Correct Answer: B) Age = 15. 22. What is the purpose of the 'forward 20' command in the program? A) To decrease the circle's radius. B) To increase the circle's radius. C) To move Tracy backward 20 pixels. D) To move Tracy forward 20 pixels. Show Answer Correct Answer: D) To move Tracy forward 20 pixels. 23. What is a input? A) To plug in something. B) A function that allows us to ask the user to enter some data. C) Data displayed on a screen. D) A function. Show Answer Correct Answer: B) A function that allows us to ask the user to enter some data. 24. How many times will the following loop execute?for i in range(3):print(i) A) 1. B) 2. C) 3. D) 4. Show Answer Correct Answer: C) 3. 25. What happens if you use the 'forward' command without parentheses? A) Tracy gives an error. B) Tracy draws a circle. C) Tracy moves forward. D) Nothing happens. Show Answer Correct Answer: A) Tracy gives an error. ← 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 8Class 11 Computer Science Chapter 2 Introduction To Python Quiz 9Class 11 Computer Science Chapter 2 Introduction To Python Quiz 10Class 11 Computer Science Chapter 2 Introduction To Python Quiz 11 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books