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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Under which situation is the Enum data structure used?
2. What is the height of a binary tree with only one node (the root)?
3. Which of the following is/are the levels of implementation of data structure
4. How do you access the second element of a tuple?
5. What is the purpose of the quicksort algorithm?
6. Based on the following statements, which are the leaf nodes?ArrayList minHeap = new ArrayList<>();Collections.addAll(minHeap, 2, 4, 5, 7, 8);
7. The data structure used to check whether an expression contains a balanced parenthesis is?
8. A binary search tree whose left subtree and right subtree differ in height by at most 1 unit is called
9. Data structure can be of two types namely .....
10. What is the main difference between a tuple and a list?
11. Give an example of a primitive data structure in Python.
12. Other name for directed graph is .....
13. How do you create a set?
14. For the activity 'Counting vowels in a sentence' that uses 'for loop within the function', what is the most efficient approach?
15. Example of non linear data structure
16. Which of the following points is/are true about Linked List data structure when it is compared with array
17. It is a type of queue where elements are processed based on their order either natural or custom.
18. If the elements P, W, S, D are placed in a stack and are deleted one at a time, what is the order of removal?
19. What does the return statement do in a Python function?Criterion 2:Apply reasoning to solve real-world problems in various contexts
20. The maximum number of nodes in a binary tree of depth 5 is
21. Push() and pop() functions are found in .....
22. Which among the following sorting algorithm is the most optimal one to sort a random linked list?
23. What is stack?
24. To represent hierarchical relationship between elements, which data structure is suitable?
25. Finding the location of a given item in a collection of items is called .....