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

Quiz Instructions

Select an option to see the correct answer instantly.

1. 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?
2. What does the return statement do in a Python function?Criterion 2:Apply reasoning to solve real-world problems in various contexts
3. The maximum number of nodes in a binary tree of depth 5 is
4. Push() and pop() functions are found in .....
5. Which among the following sorting algorithm is the most optimal one to sort a random linked list?
6. To represent hierarchical relationship between elements, which data structure is suitable?
7. Finding the location of a given item in a collection of items is called .....
8. Which of the following is an advantage of using functions in Python?Criterion 1:Evaluate and select information sources based on their appropriateness to specific tasks
9. How do you create a set in Python?
10. What is an array in data structure theory?
11. What are the 3 depth traversals for a tree data structure?
12. Which operator is used for checking if two values are equal in Python?
13. Describe how to traverse a binary tree in order.
14. ..... is a data structure in which every individual node consists of INFO to store data and LINK to store the address of the next node.
15. The algorithms like merge sort, quick sort and binary search are based on
16. Go to statement is the part of .....
17. Given an empty AVL tree, how would you construct AVL tree when a set of numbers are given without performing any rotations?
18. Can I add any data type to a tuple
19. An array elements are always stored in ..... memory locations.
20. Python has true 2-dimensional arrays?True or False?
21. In a max-heap, element with the greatest key is always in the which node?
22. How do you iterate over a dictionary in Python?
23. Under which data structure category does the Stack fall?
24. How do you create a dictionary?
25. What is a list in Python and how is it different from a tuple?
26. Which is an entity?
27. Queue follows ..... order
28. Quick sort follows Divide-and-Conquer strategy.
29. What is the best data structure for implementing a priority queue?
30. Which of the following algorithms is not feasible to implement in a linked list?
31. (A):Items of stack are inserted at top end.(B):Items of queue are inserted from front end.
32. What is the syntax for creating a set in Python?
33. Are python lists ordered?
34. B-tree of order n is a order-n multiway tree in which each non-root node contains .....
35. What is a nested data structure in Python?
36. For the 'Removing VOWELS' activity that uses 'char()' and 'Operator(+=)', what is the most logical sequence of operations?
37. What is the result of pop(x) operation on the stack?
38. What is the result of slicing a list using [2:5]?
39. Process of inserting an element in stack is called .....
40. How can you use comprehension to create a set from a list?
41. Which data structure is the collection of nodes?
42. In algorithm assignment operation is performed using the symbol .....
43. In the 'Finding Sum of Array' activity, why would you use len() function within your custom function?
44. Which of the following statement about binary tree is CORRECT?
45. ..... operation removes the element from the top of the stack.
46. In the following list, which item has the index number 3?["John", "Harry", "Jesse", "John", "Jairus", "Hamza"]
47. Which one of the following node is considered the top of the stack if the stack is implemented using the linked list?
48. Which traversal of a binary tree visits nodes in the following order:left, right, root?
49. If node N is a terminal node in a binary tree then its .....
50. Can sets contain duplicate elements?
51. For a given graph G having v vertices and e edges which is connected and has no cycles, which of the following statements is true?
52. What would be the output after performing the following operations in a Deque?Insertfront(10); Insertfront(20); Insertrear(30); Insertrear(40); Deletefront(); Insertfront(50); Deleterear(); Display();
53. How do you create a set in Python and what are its unique properties?
54. Traversing each and every record exactly once is called .....
55. Which of the following data structure is non linear type?
56. The operation of visiting each element in the list is known as .....
57. A normal queue, if implemented using an array of size MAX ..... SIZE, gets full when?
58. The data structure required for Breadth First Traversal on a graph is
59. Which of the following data structures is immutable?
60. 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