Class 12 Computer Science Chapter 2 Advanced Python Programming Quiz 8 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. Explain the concept of 'recursion' in Python functions.
2. What is the output of len('Hello World')?
3. What are the different data types in Python?
4. How can you import a specific function from a module in Python?
5. ..... is a procedure or step by step process for solving a problem.
6. Series = pd.series(\{'jan':31, "feb':29, 'march':31\})print(series) gives?
7. What keyword is used to define a function in Python?
8. How do you select a particular row, for example row 0, and then return all the columns that have a value more than 50?
9. WHICH ONE OF THESE IS USED TO TAKE INPUT FROM THE USERS?
10. What will be the output?a = 25b = 4print (a%b)
11. Which of these tests whether the variable x is the same as 'Hello'?
12. Which of the following is true about the input() function in Python?
13. What will be the output? name = 'Python' print (type(name))
14. Which mathematical concept is fit to text data (e.g. words in documents)
15. How does the grid() function put the widget on the screen?
16. Why are comments important in programming?
17. Which of these collections defines a DICTIONARY?
18. Which function is used to create a cursor object?
19. Which of the following is not a core data type in Python programming?
20. What does % math operator do?
21. What does the abstraction in Python allow programmers to do?
22. Let's say we create a DataFrame df = pd.DataFrame(\{'A':[1, 2, 3], 'B':[4, 5, 6]\})What will df.shape return?
23. Suppose t = (1, 2, 4, 3), which of the following is incorrect?
24. How do you add comments in Python code?
25. What is the return statement used for in Python functions?