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

Quiz Instructions

Select an option to see the correct answer instantly.

1. The data structure required for Breadth First Traversal on a graph is
2. Which of the following data structures is immutable?
3. Consider an implementation of unsorted singly linked list. Suppose it has its representation with a head pointer only. Given the representation, which of the following operation can be implemented in O(1) time?i) Insertion at the front of the linked list ii) Insertion at the end of the linked list iii) Deletion of the front node of the linked list iv) Deletion of the last node of the linked list
4. Linked list are not suitable data structure of which one of the following problems?
5. Which statement maps the value "Pre-final" to the identifier named PF?
6. It is a complete binary tree where the value of each parent node is either higher or lower than the value of its child nodes.
7. How does merge sort work?
8. Which value is assigned/set at front and rear ends during the Initialization of a Queue?
9. Minimum number of fields in each node of a doubly linked list is .....
10. Eight Bits make up a
11. Let P be a singly linked list. Let Q be the pointer to an intermediate node x in the list. What is the worst-case time complexity of the best known algorithm to delete the node x from the list?
12. Which of the following would correctly add an item to a list in Python?Criterion 2:Apply reasoning to solve real-world problems in various contexts
13. Which method adds a single item to a set?
14. If the front pointer is at index 2 and the rear pointer is at index 4 in a circular queue of size 6, what is the length of the queue?
15. In the 'Reversing a String' activity that uses 'Recursive function', what is the base case most likely to be?
16. The number of edges from the node to the deepest leaf is called ..... of the tree.
17. Explain the concept of slicing in Python with respect to lists and strings.
18. What is the difference between a set and a list in Python?
19. What is the difference between a shallow copy and a deep copy in Python?
20. Which of the following is the advantage of the array data structure?
21. If the elements "A" , "B" , "C" and "D" are placed in a stack and are deleted one at a time, in what order will they be removed?
22. When a function is designed to 'take input (parameters) and return output', what programming concept is being implemented?
23. Which method adds a value to the end of a list?
24. What is the starting index of array?
25. A tree sort is also known as ..... sort.