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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following data structures can be used for parentheses matching?
2. Colours = ['red', 'blue', 'yellow', 'green', 'purple']Which instruction illustrates mutability?
3. Why do we use data structure in programming language?
4. Data in the data structures are processed by operations like insertion, deletion, sorting, merging and
5. When does the ArrayIndexOutOfBoundsException occur?
6. User perform following operations on stack of size 5 then-push(1);pop();push(2);push(3);pop();push(2);pop();pop();push(4);pop();pop();push(5);
7. In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is (GATE CS 2002)
8. The operation of processing each element in the list is known as
9. When should you use a dictionary?
10. In Python, which operator is used for exponentiation?
11. What are the main characteristics of a set?
12. TREE[1]=NULL indicates is .....
13. Explain how to loop through a dictionary in Python.
14. ..... is a way to represent data in memory.
15. In which situation is a queue most commonly used?
16. ..... operation changes the value of element given by user of the stack.
17. A queue follows .....
18. Which is an attribute?
19. In the context of the activity 'Checking Even Numbers', what logical structure would most likely be implemented within the function?
20. Algorithm is a ..... procedure.
21. Insertion in Queue is done at ..... end, and deletion is at ..... end
22. The decision tree structure begins at a node called the .....
23. Evaluate and write the result for the following postfix expressionabc*+de*f+g*+ where a=1, b=2, c=3, d=4, e=5, f=6, g=2.
24. A data structure whose elements form a sequence is known as
25. Which data structure in Python does not allow duplicate elements?