Class 12 Computer Science Chapter 1 Data Structures Using Python Quiz 27 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. Function is a
2. What does the following function do for a given Linked List with first node as head?void fun1(struct node* head)\{ if(head == NULL) return; fun1(head$\rightarrow$next); printf("%d ", head$\rightarrow$data);\}
3. Collection of similar type of data item is called
4. In AVL tree, the balance factor of a node is defined as the difference between the heights of its left and right subtrees. What is the range of the balance factor for a node in a balanced AVL tree?
5. This characteristic describes whether the data items are arranged in chronological sequence, such as with an array, or in an unordered sequence, such as with a graph.
6. What is the name given to an abstract representation of how data is stored in a 2D array?
7. Pop() method does .....
8. Which of the following is not a disadvantage to the usage of array?
9. What is the output of the following code:'print((1, 2) + (3, 4))'?
10. What are the key characteristics of tuples in Python?
11. How do sets differ from lists in Python?
12. What are the advantages of using a binary tree over a linked list?
13. Which of following data structure is more appropriate forimplementing quick sort iteratively?
14. STACK follows
15. Stack uses ..... data structure as the element that was inserted last is the first one to be taken out.
16. How do you create a lambda function in Python?
17. What happens if you try to access a key that doesn't exist in a Python dictionary?Criterion 2:Apply reasoning to solve real-world problems in various contexts
18. Which data structure is used for storing key-value pairs in Python?
19. Priority Queues can be implemented in Java using the PriorityQueue class from the ..... package.
20. What does the following code snippet do? void solve(ListNode* node) \{ node = node $\rightarrow$ next;\}
21. What is the number of moves required to solve Tower of Hanoi problem for k disks?
22. In a singly linked list, what does each node contain?
23. *The evaluation of the above postfix expression is
24. How do you access the first element of a nested dictionary?
25. A function calls itself is called .....