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

Quiz Instructions

Select an option to see the correct answer instantly.

1. The term push and pop is related to
2. Stack performs ..... operation
3. Which data structure is used for implementing recursion?
4. What is the speciality about the inorder traversal of a binary search tree?
5. What are the two main classifications of data structures?
6. How do you check if a list is empty in Python?
7. 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)?
8. The algorithm is completed when the statement ..... is encountered.
9. Which of the following sorting algorithms can be used to sort a random linked list with minimum time complexity?
10. What is the disadvantage of array data structure?
11. Which of the following data structures can be used to implement queues?
12. Int is ..... data type.
13. How many children does a binary tree have?
14. What method in Python is used to remove an element from a set?
15. 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); \}
16. What does the .pop(key) function do in Python Dictionaries?
17. How will you find the minimum element in a binary search tree?