Class 12 Computer Science Chapter 1 Data Structures Using Python Quiz 13 (38 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. Linked list are not suitable data structure of which one of the following problems?
2. Which statement maps the value "Pre-final" to the identifier named PF?
3. 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.
4. How does merge sort work?
5. Which value is assigned/set at front and rear ends during the Initialization of a Queue?
6. Minimum number of fields in each node of a doubly linked list is .....
7. Eight Bits make up a
8. 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?
9. 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
10. Which method adds a single item to a set?
11. 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?
12. In the 'Reversing a String' activity that uses 'Recursive function', what is the base case most likely to be?
13. The number of edges from the node to the deepest leaf is called ..... of the tree.
14. Explain the concept of slicing in Python with respect to lists and strings.
15. What is the difference between a shallow copy and a deep copy in Python?
16. Which of the following is the advantage of the array data structure?
17. 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?
18. When a function is designed to 'take input (parameters) and return output', what programming concept is being implemented?
19. Which method adds a value to the end of a list?
20. What is the starting index of array?
21. A tree sort is also known as ..... sort.
22. The term push and pop is related to
23. Stack performs ..... operation
24. Which data structure is used for implementing recursion?
25. What is the speciality about the inorder traversal of a binary search tree?
26. What are the two main classifications of data structures?
27. How do you check if a list is empty in Python?
28. Which of the following is the correct index range for a zero-based indexed array of size 10 in most programming languages (like C, Java, Python)?
29. The algorithm is completed when the statement ..... is encountered.
30. Which of the following sorting algorithms can be used to sort a random linked list with minimum time complexity?
31. What is the disadvantage of array data structure?
32. Which of the following data structures can be used to implement queues?
33. Int is ..... data type.
34. How many children does a binary tree have?
35. What method in Python is used to remove an element from a set?
36. What is the output of following function for start pointing to first node of following linked list? 1$\rightarrow$2$\rightarrow$3$\rightarrow$4$\rightarrow$5$\rightarrow$6 void fun(struct node* start) \{ if(start == NULL) return; printf("%d ", start$\rightarrow$data); if(start$\rightarrow$next != NULL ) fun(start$\rightarrow$next$\rightarrow$next); printf("%d ", start$\rightarrow$data); \}
37. What does the .pop(key) function do in Python Dictionaries?
38. How will you find the minimum element in a binary search tree?