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
2. What symbol is used for comments in Python?
3. What is the output of 'series.head()' in Pandas?
4. What is the full form of IDLE
5. Which operator symbol is used for addition in Python?
6. What is the purpose of the 'else' statement in Python?
7. What is the main advantage of Python being an interpreted language?
8. What does Python use to do math?
9. Which operator is used for division in Python that returns a float?
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)
11. What does an exception in Python refer to?
12. An example of a high-level programming language is:
13. In the installation process shown, which option should be checked to ensure Python is added to the system PATH?
14. What is the value of 'x' after the following code runs? "'pythonx = 10x = x + 5 "'
15. Which operator is used in Python to divide one number by another and get the result as a decimal (floating point number)?
16. Apa yang dilakukan fungsi 'len()' dalam Python?
17. Generally speaking, a low level programming language is easier to read, write and maintain over a high level programming language
18. What is the purpose of a loop in programming?
19. What is the input for the following code?Python iseasy
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))
21. Which subprogram would you use to fill a shape with color in the turtle library module?
22. Differentiate between identifiers and keywords.
23. Python is an ..... language
24. Variable names are not case-sensitive.a = 5# is the same asA = 5
25. Python is ..... typed, which means that the type of an object does not change