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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the correct way to create a set in Python?
2. What method in Python is used to check if a key exists in a dictionary?
3. The optimal data structure used to solve Tower of Hanoi is .....
4. What is the name given to a number that corresponds to the location of an item of data in an array?
5. How do you access the value for a key?
6. How do you add an element to the end of a list in Python?
7. Arranging elements of a data structure in increasing or decreasing order is known as .....
8. 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, get the total number of element present in stack is
9. To measure Time complexity of an algorithm Big O notation is used which:
10. What is the difference between linear search and binary search?
11. Stacks follows ..... order
12. Which data structure in Python follows the First In First Out (FIFO) principle?
13. A Binary Tree can have
14. Queue Implementation using Array. Array name is Queuearray and rear is the current element pointer and "data" is the new item to be added. For adding a new element int the queue, is the following statement correct? queue[rear] = data;Queuearray[rear] = data;
15. A complete binary tree with 5 levels has how many nodes? (Root is Level 1)
16. When designing a function for 'Multiplying Numbers', what parameter design would provide the most flexibility?
17. How can we describe an array in the best possible way?
18. In ..... , search start at the beginning of the list and check every element in the list.
19. ..... approach is best to solve 0/1 Knapsack problem
20. A record allows multiple data items to be stored using ..... ..... to identify each item of data
21. If the elements "A" , "B" , "C" and "D" are placed in a queue and are deleted one at a time, in what order will they be removed?
22. Example of linear data structure except
23. Which of the following best describes the purpose of a try-except block in Python?Criterion 2:Apply reasoning to solve real-world problems in various contexts
24. In Stack Insertion and deletion of an element is done at single end called .....
25. How can you create a dictionary from two lists?