Class 12 Computer Science Chapter 1 Data Structures Using Python Quiz 10 (60 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. Routine to delete element in an array implementation of List
2. Which of the following statement(s) about stack data structure is/are NOT correct?
3. Collection of related field or items is called
4. Why are sets useful?
5. When analyzing the syntax 'def fun():', what would happen if you wrote 'def fun' without the parentheses and colon?
6. In the context of 'String slicing' mentioned in activity 14, what advantage does this provide in function implementation?
7. Which of these data structures is FIFO?
8. In a circular queue, how do you calculate the length of the queue?
9. What method would you use to add an element to a list?
10. Which of the following rotations is called double rotation?
11. What is the information, which a LinkedList's Node must store?
12. Time complexity of matrix multiplication:
13. List some common string methods in Python.
14. A FIFO structure implemented as a ring where the front and rear pointers can wrap around the end of the start of the array.
15. What are the advantages of using list comprehension?
16. What are the worst case and average case complexities of a binary search tree?
17. What does it mean when an array is described as 'static'?
18. 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?
19. How do you analyze the time complexity of an algorithm?
20. What is a correct way to visualize a four-dimensional array?
21. Which of the following can be done with LinkedList?
22. Which type of traversal of binary search tree outputs the value in sorted order?
23. Which method would you use to retrieve a value from a dictionary using a key?
24. 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" ?
25. What are tuples and how are they different from lists?
26. ..... is a collection of elements used to store the same type of data.
27. List two operations that can be performed on data structures.
28. What is the range of floating point number in C?
29. In a full binary tree if number of internal nodes is I, then number of leaves L are?
30. A Data Structure is:
31. Elements can be removed from a stack from
32. The two major factors of data structure complexity are:
33. Binart search requires sorted aaray
34. Int nums[ ] = {2, 3, 5, 8, 9, 11};How would you access the fourth element in nums
35. 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?
36. Data structure= Organized data + .....
37. How do you insert a new node at the beginning of a singly linked list in Python?
38. In Queue we can not insert an element in between the elements that are already inserted but we can delete it.
39. How many null pointers exists in a circular linked list?
40. In circular linked list, insertion of node requires modification of?
41. What is the way to increment the rear end of a circular queue?
42. What is the main difference between a list and a tuple in Python?
43. Compression techniques can be used on the keys to reduce both space and time requirements in a B-tree.
44. It is used to implement an associative array, a structure that can map keys to values.
45. How many nodes does a full binary tree with n leaves contains?
46. The elements in a queue are added at one end called .....
47. Which is a Linear data structure?
48. Which of the following data structure is linear type?
49. The disadvantage in using a circular linked list is .....
50. What is the syntax for creating a dictionary in Python?
51. A linked list is a collection of
52. Consider an undirected graph with weighted edges, where the weights represent the cost of traversal between nodes. You are tasked with finding the path between two nodes with the minimum total cost. Which traversal algorithm is more suitable for this scenario?
53. What is list comprehension in Python?
54. To perform level-order traversal on a binary tree, which of thefollowing data structure will be required?
55. The operation to arrange all elements in required order is called:
56. How are String represented in memory in C?
57. For 'Calculating Surface Area and Volume' activity, what type of function design would be most appropriate?
58. Which method is used to view the first few rows of a DataFrame?
59. The number of elements in the adjacency matrix of a graph having 7 vertices is
60. Which syntax correctly creates a dictionary?