This quiz works best with JavaScript enabled. Home > Class 12 > Class 12 Computer Science Chapter 1 Data Structures Using Python – Quiz 13 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 12 Computer Science Chapter 1 Data Structures Using Python Quiz 13 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. ..... is neither an algorithm nor a program. A) Computing. B) Pseudo code. C) Computer science. D) None of the above. Show Answer Correct Answer: B) Pseudo code. 2. The post fix form of (A + B) *C is A) AB+ C*. B) ABC*+. C) ABC*+. D) ABC*+. Show Answer Correct Answer: A) AB+ C*. 3. Which one of the following is the process of inserting an element in the stack? A) Insert. B) Add. C) Push. D) None of the above. Show Answer Correct Answer: C) Push. 4. What is the purpose of using sets in Python? Provide an example. A) Sets are used to store duplicate elements and perform mathematical operations. B) Sets are used to store elements in a specific order and perform sorting operations. C) Sets are used to store unique elements and perform set operations. D) Sets are used to store elements in a sequential manner and perform string operations. Show Answer Correct Answer: C) Sets are used to store unique elements and perform set operations. 5. How many edges are in a tree? A) N-1. B) N + 1. C) N * 1. D) N / 1. Show Answer Correct Answer: A) N-1. 6. List some common methods available for strings in Python. A) ['upper()', 'lower()', 'strip()', 'split()', 'replace()']. B) Join(). C) Find(). D) Concat(). Show Answer Correct Answer: A) ['upper()', 'lower()', 'strip()', 'split()', 'replace()']. 7. The data type keyword NOT supported in C Language is: A) Double. B) Pointer. C) Union. D) Enum. Show Answer Correct Answer: B) Pointer. 8. Give syntax to create a node for Single linked list? A) Newnode=(struct node *)malloc(sizeof(struct node*));. B) Newnode=(struct node )malloc(sizeof(struct node));. C) Newnode=(struct node *)malloc(sizeof(struct node));. D) Newnode=(struct node )malloc(sizeof(struct node*));. Show Answer Correct Answer: A) Newnode=(struct node *)malloc(sizeof(struct node*));. 9. Can We Implement Stack Using Queue Data structure A) Yes. B) No. C) All the above. D) None of the above. Show Answer Correct Answer: A) Yes. 10. If the front pointer in a circular queue is at index 0 and the rear pointer is at index n-1, what is the length of the queue? A) N-1. B) N. C) 0. D) N + 1. Show Answer Correct Answer: B) N. 11. Tree is a specific form of ..... A) 1. B-tree. B) 2. B+-tree. C) 3. AVL tree. D) 4. Heap. Show Answer Correct Answer: A) 1. B-tree. 12. If l=[23, 4, 56, 78] and top=len(l)-1 what would be l[top]? A) 23. B) 46. C) 56. D) 78. Show Answer Correct Answer: D) 78. 13. Undo/Redo is implemented using ..... A) Queue. B) Tree. C) Linked List. D) Stack. Show Answer Correct Answer: D) Stack. 14. What does the .values() function do in Python Dictionaries? A) Returns the number of items in the Dictionary. B) Prints out all the keys within the Dictionary. C) Removes a key with its value from the Dictionary. D) Prints out all the values within the Dictionary. Show Answer Correct Answer: D) Prints out all the values within the Dictionary. 15. Which of the following is not the type of queue? A) Priority queue. B) Circular queue. C) Single ended queue. D) Linear queue. Show Answer Correct Answer: C) Single ended queue. 16. If the size of the stack is 10 and we try to add the 11th element in the stack then the condition is known as ..... A) Underflow. B) Garbage collection. C) Overflow. D) None of the above. Show Answer Correct Answer: C) Overflow. 17. Which of the following operations is performed more efficiently by doubly linked list than by singly linked list? A) Deleting a node whose location in given. B) Searching of an unsorted list for a given item. C) Inverting a node after the node with given location. D) Traversing a list to process each node. Show Answer Correct Answer: A) Deleting a node whose location in given. 18. What will happen if you try to add a duplicate item to a set? A) The set will throw an error when adding a duplicate item. B) The duplicate item will be added as a new entry in the set. C) The duplicate item will replace the existing item in the set. D) The duplicate item will not be added to the set. Show Answer Correct Answer: D) The duplicate item will not be added to the set. 19. In stack insertion and deletion can take place only at one end call the ..... of the stack. A) Path. B) Function. C) Top. D) Bottom. Show Answer Correct Answer: C) Top. 20. What will be the output of the following code:if x > 10:print('High') else:print('Low')? A) Always 'Low'. B) Always 'High'. C) Prints 'Error' if x is not a number. D) Depends on the value of x. Show Answer Correct Answer: D) Depends on the value of x. 21. What method in Python is used to sort elements in a list in ascending order? A) Sort(). B) Arrange(). C) Order(). D) Organize(). Show Answer Correct Answer: A) Sort(). 22. Which of the following is true about the memory allocation for arrays? A) Arrays are always allocated on the stack. B) Arrays always use contiguous blocks of memory. C) Arrays are never contiguous; they use dynamic memory allocation. D) Arrays are not allocated memory until they are used. Show Answer Correct Answer: B) Arrays always use contiguous blocks of memory. 23. In a list l=[2, 5, 8, 1] after pop an element what would be len(l) A) 4. B) 2. C) 3. D) 1. Show Answer Correct Answer: C) 3. 24. Consider a job scheduling problem with 4 jobs J$_{1}$, J$_{2}$, J$_{3}$, J$_{4}$ and with corresponding deadlines:( d$_{1}$, d$_{2}$, d$_{3}$, d$_{4}$) = (4, 2, 4, 2). Which of the following is not a feasible schedule without violating any job schedule? A) J$_{2}$, J$_{4}$, J$_{1}$, J$_{3}$. B) J$_{4}$, J$_{1}$, J$_{2}$, J$_{3}$. C) J$_{4}$, J$_{2}$, J$_{1}$, J$_{3}$. D) J$_{4}$, J$_{2}$, J$_{3}$, J$_{1}$. Show Answer Correct Answer: B) J$_{4}$, J$_{1}$, J$_{2}$, J$_{3}$. 25. Which statement determine whether a map contains the value "Pre-final" with the PF identifier? A) ThisMap.containsKey("Pre-final");. B) ThisMap.containsValue("PF");. C) ThisMap.containsKey("PF");. D) ThisMap.containsValue("Prefinal");. Show Answer Correct Answer: D) ThisMap.containsValue("Prefinal");. ← PreviousNext →Related QuizzesClass 12 Computer Science Chapter 1 Data Structures Using Python Quiz 1Class 12 Computer Science Chapter 1 Data Structures Using Python Quiz 2Class 12 Computer Science Chapter 1 Data Structures Using Python Quiz 3Class 12 Computer Science Chapter 1 Data Structures Using Python Quiz 4Class 12 Computer Science Chapter 1 Data Structures Using Python Quiz 5Class 12 Computer Science Chapter 1 Data Structures Using Python Quiz 6Class 12 Computer Science Chapter 1 Data Structures Using Python Quiz 7Class 12 Computer Science Chapter 1 Data Structures Using Python Quiz 8Class 12 Computer Science Chapter 1 Data Structures Using Python Quiz 9Class 12 Computer Science Chapter 1 Data Structures Using Python Quiz 10 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books