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

Quiz Instructions

Select an option to see the correct answer instantly.

1. How do you modify an element at a specific index in a list?
2. Which data structure follows FIFO System?
3. Which of the following operations is performed more efficiently by doubly linked list than by linear linked list? (ISRO CS 2001)
4. Which of the following data structures allow insertion and deletion from both ends?
5. This structure uses a pointer to link nodes.
6. X = 5 while x > 0:print("Counting down!")
7. What is a nested list and how can you access its elements?
8. State true of false.i) A node is a parent if it has successor nodes.ii) A node is child node if out degree is one.
9. Array or linear list comes under the category of .....
10. What will be the output of the following code snippet for 1$\rightarrow$2$\rightarrow$3$\rightarrow$4$\rightarrow$5? void solve (ListNode* head) \{ while(head != NULL) \{ cout << head $\rightarrow$ data << '' "; head = head $\rightarrow$ next; \}\}
11. Quick sort follows which type of algorithm
12. Circular Queue is also known as .....
13. This stores its elements in a special type of tree where elements are sorted either natural or custom during iteration.
14. It is a linear data structure that stores a collection of elements. Operates on first in first out (FIFO) algorithm.
15. In ..... type of linked lists we can traverse in both the directions.
16. An exam was attended by 80 students. Min marks-0, Max Mark-50. I need to store the frequency of marks >30. What will be the size of the array needed for it?
17. How do you initialize an array in C?
18. Consider the following operation performed on a stack of size 5.Push(1);Pop();Push(2);Push(3);Pop();Push(4);Pop();Pop();Push(5);After the completion of all operation, the number of elements present in stack are
19. Suppose each set is represented as a linked list with elements in arbitrary order. Which of the operations among union, intersection, membership, cardinality will be the slowest? (GATE CS 2004)
20. Explain the difference between a list and a tuple in Python.
21. A linked list have
22. Match the following.a) Completeness i) How long does it take to find a solutionb) Time Complexity ii) How much memory need to perform the search.c) Space Complexity iii) Is the strategy guaranteed to find the solution when there in one.
23. Compound Data structure can be ..... & .....
24. The elements of static list are stored in
25. A terminal node in a binary tree is called .....