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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Main Operations in Stacks are Called
2. Three standards ways of traversing a binary tree T with root R .....
3. Scores = [5, 7, 0, 10, 8, 3, 7, 3]Which value will be found using the following statement:print(scores[2])
4. What is the significance of the head and tail in a linked list?
5. What is the purpose of the 'with' statement in Python?
6. What will be the output of this program?a = 2**3*5+(10-1)*9
7. Name and explain two common sorting algorithms.
8. What is the output of the following code:for i in range(5):print(i)?
9. What does the following code do? public Object function() \{ if(isEmpty()) return-999; else \{ Object high; high = q[front]; return high; \} \}
10. How do you create a tuple?
11. In the 'Counting Words in a sentence' activity using len(), what preprocessing step would be most important?
12. How can we initialize an array in C language?
13. A map can contain duplicate keys.
14. In algorithm comment use by ..... brackets.
15. How can you remove an item from a dictionary?
16. Queue uses ..... for adding and deleting elements.
17. Which of the following represents the Postorder Traversal of a Binary Tree?
18. What is an AVL tree?
19. Which of the following operations is used to add an element to a queue?
20. How do you add a new key-value pair to a dictionary?
21. Every stack has a variable ..... associated with it.
22. Arranging the books in order and removing from the topmost book is an example for .....
23. The format identifier '%i' is also used for ..... data type.
24. Which of the following statements are not correct with respect to Singly Linked List(SLL) and Doubly Linked List(DLL)?
25. A container which can hold a fix number of items and these items should be of the same type. Most of the data structures make use of arrays to implement their algorithms.