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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Consider the usual algorithm for determining whether a sequence of parentheses is balanced.The maximum number of parentheses that appear on the stack AT ANY ONE TIME when the algorithm analyzes:(()(())(())) are:
2. How do you access the third element in a list named 'my ..... list' in Python?
3. Which of the following properties are obeyed by all three tree-traversals?
4. Which value does the command 'list[3]' find?
5. Which data structure allows deleting data elements from and inserting at rear?
6. What a field does?
7. For the array:float stats[3];What is the range of the index?
8. List of data in which element can be inserted and removed at the same end is called as .....
9. In algorithm several statements appear in the same step
10. How do you create a class in Python and instantiate an object from it?
11. Which feature makes tuples useful as dictionary keys?
12. Consider the following definition in c programming language. struct node \{ int data; struct node next; \} typedef struct node NODE; NODE *ptr; Which of the following c code is used to create new node?
13. How can you convert a list to a set in Python?
14. How many edges will a tree consisting of N nodes have?
15. Which of the following is/are property/properties of a dynamic programming problem?
16. What is the difference between a set and a frozenset in Python?
17. A set of ordered pairs where elements are known as keys or identifiers and values or content.
18. Which of the following is a correct way to declare a multidimensional array in Java?
19. Which one of these is correct about a set?
20. Pointer is ..... data type
21. How do you create a button in Tkinter that performs an action when clicked?Criterion 2:Apply reasoning to solve real-world problems in various contexts
22. What is a binary search and when is it used?
23. Storage for data defined in terms of set of operations to be performed on the data
24. Statement 1:When a node is split during insertion, the middle key is promoted to the parent as well as retained in right half-node.Statement 2:When a key is deleted from the leaf, it is also deleted from the non-leaf nodes of the tree.
25. Convert the following Infix expression to Postfix form using a stackx + y * z + (p * q + r) * s, Follow usual precedence rule and assume that the expression is legal.