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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following is NOT a type of binary tree?
2. What is the result of the expression ' 7 // 2 ' in Python?
3. What is the main difference between a list and a tuple?
4. The complexity of Bubble sort algorithm is
5. What is the difference between a set and a dictionary?
6. What is a stack and how does it operate?
7. What would be the solution to the given prefix notation?
8. Entries in a stack are "ordered" . What is the meaning of this statement?
9. What is the role of a hash function in hash tables?
10. How can you access the last element of a list in Python?
11. 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?
12. Explain how a binary tree is a nonlinear data structure.
13. Which is the most appropriate data structure for reversing a word?
14. How do you access the second element of a tuple in Python?
15. Which of these best describes an array?
16. Can tuples be modified after creation?
17. What is the difference between lists and arrays in Python?
18. What is a set in Python?
19. What are the advantages of using tuples over lists in Python?
20. How do you implement a stack in Python?
21. If you have a function that calculates area and you want to reuse it in multiple projects, which programming principle does this demonstrate?
22. What is the main characteristic of a stack?
23. Linked lists are not suitable to for the implementation of?
24. Select the non-linear data structure from the options below:
25. The data structure required to check whether an expression contains balanced parenthesis is?