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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Heap exhibits the property of a binary tree?
2. There is an extra element at the head of the list called a .....
3. Which syntax correctly creates a tuple?
4. How do you determine the time complexity of a recursive algorithm?
5. What are the advantages of using a linked list over an array?
6. #include int main() \{ int arr[5]=\{10, 20, 30, 40, 50\}; printf("%d", arr[5]); return 0; \}
7. What method would you use to convert a string to lowercase in Python?
8. The elements of a linked list are stored
9. What happens if you try to access a key that does not exist in a dictionary?
10. Which function is used to drop missing values from a DataFrame in Pandas?
11. ..... specifies how we enter data into our programs and what type of data we enter.
12. What data structure is best suited for implementing undo functionality in a text editor?
13. How many edges are present in the complete graph of n vertices?
14. Explain the concept of recursion with an example.
15. What type of structure is this in Python?shopping=[["tomato", "rice", "cheese", "milk"], ["soap", "masks", "detergent"]]
16. Which is not a linear data structure?
17. Which function is used to read a CSV file into a DataFrame in Pandas?
18. Which of these is not a data structure?
19. In preorder traversal of a binary tree the second step is .....
20. What is the significance of the 'import' statement in Python modules?
21. A Kind of tree where every node in a tree can have at most two children.
22. How do you instantiate an array in Java?
23. Which of the following problems can be solved using 2 pointers on linked list?
24. Maximum degree of any vertex in a simple graph of vertices n is
25. Linked list data structure offers considerable saving in .....