Class 12 Computer Science Chapter 2 Advanced Python Programming Quiz 10 (15 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What will be the output?print (type(5 // 2))
2. The ..... function is used to create Tuples from a list.
3. Creating line belongs to ..... category.
4. Which is correct line to import pandas
5. He is a Dutch Programmer known as the creator of Python?
6. Which arithmetic operators cannot be used with strings in Python?
7. What will be the output of this string operation s[2:5], if s="hello world" -
8. Which method can be used to remove any whitespace from both the beginning and the end of a string?
9. Which command will correctly ask the user for their age?
10. What will be the output of the following Python code? x = 50 def func(x):print('x is', x) x = 2 print('Changed local x to', x) func(x) print('x is now', x)
11. What is the purpose of using 'pass' in Python?
12. WHICH ONE OF THE FOLLOWING ARE USED RELATION BETWEEN TWO OR MORE VARIABLES?
13. What is the output of the following code snippet:'x = 5if x > 3:print('x is greater than 3')'?
14. You want to sampling 10 from 100 patients (One-by-One). Which one does NOT necessary in your code?
15. Series is