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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the purpose of the reduce function in Python?
2. Act of adding values into a stack is called
3. Explain the concept of recursion in programming.
4. What should be the value of rear (end) if the queue is full (elements are completely occupied )?
5. In the linked list implementation of queue, where will the new element be inserted?
6. Minimum nodes possible height for a AVL tree with 16 nodes
7. Which of the following is the most widely used external memory data structure?
8. Can dictionary keys be of any data type?
9. In which algorithm takes less time or space is called
10. Which situation is best for using a tuple?
11. How can you check if an item exists in a tuple in Python?
12. How do you access the first element of a list?
13. Which data structure is mainly used for implementing the recursive algorithm?
14. Consider the following array:[7, 4, 2, 8, 5, 1, 6, 3]. If you use the QuickSort algorithm and choose the pivot as the last element, what will be the array after the first partitioning step?
15. What would be the Prefix notation for the given equation?A+(B*C)
16. How can you access the value associated with a specific key in a dictionary?
17. Which of the following lines of code will cause an error? Use the following definition of ages:ages = (12, 5, 8)
18. What happens when you delete a node from a singly linked list?
19. A binary search tree is generated by inserting in order the following integers:50, 15, 62, 5, 20, 58, 91, 3, 8, 37, 60, 24 The number of the node in the left sub-tree and right sub-tree of the root, respectively, is
20. How do you use the map function in Python?
21. The height of a Binary Search Tree is given as h. Consider the height of the tree as the no. of edges in the longest path from root to the leaf. The maximum no. of nodes possible in the tree is?
22. In the ..... traversal we process all of a vertex's descendents before we move to an adjacent vertex.
23. What is a dictionary in Python and how is it used?
24. Python built-in data structures are
25. How do you remove a key-value pair from a dictionary in Python?