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

Quiz Instructions

Select an option to see the correct answer instantly.

1. List some common string methods in Python.
2. A FIFO structure implemented as a ring where the front and rear pointers can wrap around the end of the start of the array.
3. What are the advantages of using list comprehension?
4. What are the worst case and average case complexities of a binary search tree?
5. What does it mean when an array is described as 'static'?
6. You are given a knapsack that can carry a maximum weight of 60. There are 4 items with weights \{20, 30, 40, 70\} and values \{70, 80, 90, 200\}. What is the maximum value of the items you can carry using the knapsack?
7. How do you analyze the time complexity of an algorithm?
8. What is a correct way to visualize a four-dimensional array?
9. Which of the following can be done with LinkedList?
10. Which type of traversal of binary search tree outputs the value in sorted order?
11. Which method would you use to retrieve a value from a dictionary using a key?
12. Consider the following pseudocode that uses a stackdeclare a stack of characterswhile ( there are more characters in the word to read )\{ \{ read a character push the character on the stack\}while ( the stack is not empty )\{ pop a character off the stack write the character to the screen\}What is output for input "computer" ?
13. What are tuples and how are they different from lists?
14. ..... is a collection of elements used to store the same type of data.
15. List two operations that can be performed on data structures.
16. In a min-heap:
17. What is the range of floating point number in C?
18. In a full binary tree if number of internal nodes is I, then number of leaves L are?
19. A Data Structure is:
20. Elements can be removed from a stack from
21. The two major factors of data structure complexity are:
22. Binart search requires sorted aaray
23. Int nums[ ] = \{2, 3, 5, 8, 9, 11\};How would you access the fourth element in nums
24. Consider the following numbers 8, 1, 2, 4, 3, 9, 6, 5 to be inserted into the empty binary search tree. What will be the sequence of in-order traversal of the resultant binary search tree?
25. Data structure= Organized data + .....