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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What method in Python is used to check if an element is present in a set?
2. Can I have duplicate keys in a python dictionary?
3. How can you convert a list of strings to their lengths using map?
4. Which data structure follows LIFO System?
5. 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?
6. What is a complete binary tree?
7. Which is not a non-primitive data structure?
8. What is the difference between a tuple and a list?
9. A vertex of in-degree zero in a directed graph is called .....
10. Any node is the path from the root to the node is called
11. What happens when you add a duplicate to a set?
12. Five node splitting operations occurred when an entry is inserted into a B-tree. Then how many nodes are written?
13. A graph in which all vertices have equal degree is known as .....
14. ..... is the data structure that has collection of nodes two fields named data and link.
15. ..... is the method used by card sorter?
16. What is the maximum height of any AVL-tree with 7 nodes? Assume that the height of a tree with a single node is 0.
17. How is an array initialized in C language?
18. For an int of size 4 bites what is the size of arr[15]
19. What is a linked list in Python?
20. How do you add an element to a set?
21. What is a python dictionary?
22. Evaluate postfix expression2 3 1 * + 9-
23. Which of the following is the most appropriate data structure for reversing a string?
24. Void is ..... data type.
25. Complexity of Binary Search for an array of n numbers is