This quiz works best with JavaScript enabled. Home > Class 11 > Class 11 Computer Science Chapter 2 Introduction To Python – Quiz 46 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 11 Computer Science Chapter 2 Introduction To Python Quiz 46 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. The operators and, or, not are called A) Truth operators. B) Smooth operators. C) Boolean operators. D) Tooth operators. Show Answer Correct Answer: C) Boolean operators. 2. What symbol is used for comments in Python? A) //. B) . C) %%. D) #. Show Answer Correct Answer: D) #. 3. What is the output of 'series.head()' in Pandas? A) The first five members of the series. B) The last five members of the series. C) A summary of the series statistics. D) The entire series data. Show Answer Correct Answer: A) The first five members of the series. 4. What is the full form of IDLE A) INTEGARTED DEVELOPMENT AND LEARNING ENVIRONMENT. B) INTEGRATED DEVELOPING AND LEARN ERA. C) INTEGER DEVELOPMENT AND LOOP ENVIRONMENT. D) INTEGER DEVELOP AND LEARNING ENVIRONMENT. Show Answer Correct Answer: A) INTEGARTED DEVELOPMENT AND LEARNING ENVIRONMENT. 5. Which operator symbol is used for addition in Python? A) -. B) *. C) +. D) /. Show Answer Correct Answer: C) +. 6. What is the purpose of the 'else' statement in Python? A) To repeat a block of code. B) To execute a block of code when the 'if' condition is false. C) To define a variable. D) To handle errors. Show Answer Correct Answer: B) To execute a block of code when the 'if' condition is false. 7. What is the main advantage of Python being an interpreted language? A) It runs faster than compiled languages. B) It allows for cross-platform compatibility. C) You can execute code line by line and see the output immediately. D) It has built-in security features for network applications. Show Answer Correct Answer: C) You can execute code line by line and see the output immediately. 8. What does Python use to do math? A) Pencils. B) Paint. C) Symbols like +, -, *, /. D) Notes. Show Answer Correct Answer: C) Symbols like +, -, *, /. 9. Which operator is used for division in Python that returns a float? A) //. B) /. C) %. D) . Show Answer Correct Answer: B) /. 10. Select the correct flow of execution for the below program1. #program to add two numbers through a function2. def calc ..... Sum (x, y):3. s = x + y4. return s5.6. num1 = int (input ( "Enter first number:'' ) )7. num2 = int (input ( "Enter second number:'' ) )8. sum = calc ..... Sum (num1, num2)9. print ( "Sum of two given numbers is" , sum) A) 2-6-7-8-9-2-3-4. B) 2-6-7-8-2-3-4-9. C) 2-6-7-8-2-3-4-8-9. D) 2-6-7-8-2-3-4. Show Answer Correct Answer: B) 2-6-7-8-2-3-4-9. 11. What does an exception in Python refer to? A) A good thing in the program. B) A problem in the code. C) A user input. D) A successful execution. Show Answer Correct Answer: B) A problem in the code. 12. An example of a high-level programming language is: A) Python. B) Assembly. C) Machine code. D) Cloud. Show Answer Correct Answer: A) Python. 13. In the installation process shown, which option should be checked to ensure Python is added to the system PATH? A) Use admin privileges. B) Add python.exe to PATH. C) Customize installation. D) Install Now. Show Answer Correct Answer: B) Add python.exe to PATH. 14. What is the value of 'x' after the following code runs? "'pythonx = 10x = x + 5 "' A) 5. B) 10. C) 15. D) 20. Show Answer Correct Answer: C) 15. 15. Which operator is used in Python to divide one number by another and get the result as a decimal (floating point number)? A) //. B) /. C) %. D) . Show Answer Correct Answer: B) /. 16. Apa yang dilakukan fungsi 'len()' dalam Python? A) Fungsi 'len()' mengembalikan jumlah item dalam sebuah objek. B) Fungsi 'len()' menghitung jumlah angka dalam sebuah daftar. C) Fungsi 'len()' mengonversi sebuah objek menjadi string. D) Fungsi 'len()' memeriksa apakah sebuah objek kosong atau tidak. Show Answer Correct Answer: A) Fungsi 'len()' mengembalikan jumlah item dalam sebuah objek. 17. Generally speaking, a low level programming language is easier to read, write and maintain over a high level programming language A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 18. What is the purpose of a loop in programming? A) To execute code once. B) To define a variable. C) To create a function. D) To repeat a block of code multiple times. Show Answer Correct Answer: D) To repeat a block of code multiple times. 19. What is the input for the following code?Python iseasy A) Print( Python is easy). B) Print(" Python ")print("is")print("easy"). C) Print( Python is easy). D) None of the above. Show Answer Correct Answer: B) Print(" Python ")print("is")print("easy"). 20. What will be the output if the user inputs 15?def check ..... even ..... odd(number):if number % 2 == 0:return "Even" else:return "Odd"user ..... input = int(input("Enter a number: "))print(check ..... even ..... odd(user ..... input)) A) Even. B) Odd. C) Error. D) None. Show Answer Correct Answer: B) Odd. 21. Which subprogram would you use to fill a shape with color in the turtle library module? A) Turtle.setposition(, ). B) Turtle.fillcolor(). C) Turtle.hideturtle(). D) Turtle.home(). Show Answer Correct Answer: B) Turtle.fillcolor(). 22. Differentiate between identifiers and keywords. A) Identifiers are reserved words, keywords are names of entities. B) Identifiers are part of Python language, keywords are special words. C) Identifiers are names of entities, keywords are reserved words. D) Identifiers are special words, keywords are part of Python language. Show Answer Correct Answer: C) Identifiers are names of entities, keywords are reserved words. 23. Python is an ..... language A) Compiled. B) Interpreted. C) Interrupted. D) All of the Choice mentioned. Show Answer Correct Answer: B) Interpreted. 24. Variable names are not case-sensitive.a = 5# is the same asA = 5 A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 25. Python is ..... typed, which means that the type of an object does not change A) Strongly. B) Weakly. C) Storage. D) None of the mentioned. Show Answer Correct Answer: A) Strongly. ← 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