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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which data structure is used to check a palindrome?
2. A collection of elements where each element is unique.
3. What is a non-primitive data structure? Provide an example.
4. The number of edges in a complete graph of n vertices is .....
5. Array data can be accessed using .....
6. What will be the result of the below given expression in prefix form-+ 2 3 8
7. What is the purpose of a data structure in programming?
8. What is the primary data structure in Pandas used for representing tabular data?
9. Which of the following is the postfix of the expression A+B/C*(D-A)
10. When implementing 'Greeting People' functionality, what makes a function more versatile than hardcoded text?
11. What is the optimal time complexity to count the number of nodes in a linked list?
12. Can I add onto a dictionary after created
13. To evaluate an expression without any embedded function calls:
14. What is the best case height of a B-tree of order n and which has k keys?
15. Which of the following properties is associated with a queue?
16. Which operation is problematic in an array?
17. How can you access 'Austria' from an array of countries?
18. While implementing Queue using list when we want to delete element we must use pop function as .....
19. Which is the type of an array?
20. The leaves of an expression tree always contain?
21. Given the following preorder and inorder traversals of a binary tree:Preorder:M, N, O, P, Q, R, S, TInorder:O, P, Q, R, N, T, M, SReconstruct the binary tree and determine the number of values after the root node.
22. Which Time and Space Complexity uses the O(n$^{2}$) notation?
23. Data Structure is a particular way of storing and organizing data in a computer so that it can be used efficiently.
24. What is the maximum number of keys that a B+-tree of order 3 and of height 3 have?
25. Count = 0 while count < 3:print("Hello!") count += 1
26. What is a queue and how does it differ from a stack?
27. A data structure in which elements can be inserted or deleted at/from both ends but not in the middle is?
28. Which of the following is NOT a type of binary tree?
29. What is the result of the expression ' 7 // 2 ' in Python?
30. What is the main difference between a list and a tuple?
31. The complexity of Bubble sort algorithm is
32. What is the difference between a set and a dictionary?
33. What is a stack and how does it operate?
34. What would be the solution to the given prefix notation?
35. Entries in a stack are "ordered" . What is the meaning of this statement?
36. What is the role of a hash function in hash tables?
37. Given a sequence of number below:50, 60, 40, 70, 45, 55, 30, 80, 65, 35, 25, 75, 85When creating a binary search tree, what is the height of the tree?
38. Explain how a binary tree is a nonlinear data structure.
39. Which is the most appropriate data structure for reversing a word?
40. How do you access the second element of a tuple in Python?
41. Which of these best describes an array?
42. Can tuples be modified after creation?
43. What is the difference between lists and arrays in Python?
44. What is a set in Python?
45. What are the advantages of using tuples over lists in Python?
46. How do you implement a stack in Python?
47. If you have a function that calculates area and you want to reuse it in multiple projects, which programming principle does this demonstrate?
48. What is the main characteristic of a stack?
49. Linked lists are not suitable to for the implementation of?
50. Select the non-linear data structure from the options below:
51. The data structure required to check whether an expression contains balanced parenthesis is?
52. What method in Python is used to check if an element is present in a set?
53. Can I have duplicate keys in a python dictionary?
54. How can you convert a list of strings to their lengths using map?
55. Which data structure follows LIFO System?
56. The given array is arr = {1, 2, 4, 3}. Bubble sort is used to sort the array elements. How many iterations will be done to sort the array?
57. What is a complete binary tree?
58. Which is not a non-primitive data structure?
59. A vertex of in-degree zero in a directed graph is called .....
60. Any node is the path from the root to the node is called