Fundamental Data Structures
Covers core data structure concepts including arrays, stacks, queues, linked lists, and trees, along with their operations and implementation in C++
Questions
______________ is recognised as a non-linear data structure.
- Stack
- Queue
- Linked list
- Tree
- Array
Which of the following is the essential condition required for binary search?
- The array list must be short in size.
- The array list must be arranged in descending order.
- The array list must be arranged in increasing order.
- The array list must have numbers in random order.
- The array list must be very lengthy.
_____________ is the process of accessing each element of the array exactly once to do some operation.
- Searching
- Sorting
- Traversing
- Merging
- Insertion
_______________ is the order in which all the first row elements are stored in sequential memory location then all the second row elements are stored and so on.
- Column-major order
- Row-major order
- Identity matrix
- Null matrix
- Square matrix
Which of the following is the greatest disadvantage of using arrays?
- Arrays are small in size.
- Arrays are very big in size.
- Arrays are static structures.
- Arrays are dynamic structures.
- Arrays are easier to implement.
Which of the following is the operation in which a new data or element is inserted into the stacks?
- Pop
- Push
- Top
- Size
- Stack
_______________ specifies the overflow condition in stack.
- Top = - 1
- Top = N - 1
- Top = 0
- Top = 1
- Top = N
Which of the following is the correct conversion of the infix expression A+B*C into postfix expression?
- AB+C*
- +A*BC
- ABC*+
- AB+*C
- AB*C+
Which of the following operators is used in C++ to dynamically allocate memory space for a new node in the linked list?
- Delete
- Malloc
- Calloc
- Delete []
- New
Which of the following type of queues is the one in which all nodes are treated as circular such that the last node follows the first node?
- Simple queue
- Priority queue
- Dequeue
- Circular queue
- Square queue
___________ pointer is incremented in a queue when a new element is added.
- Front
- Rear
- Top
- Exit
- Break
Which of the following is the technique in which if a node is deleted from the linked list then the memory space of the deleted node is immediately reinserted into the free storage?
- Traversing
- Underflow
- Garbage collection
- Start
- Null
Which of the following datatypes is used in C++ to implement linked list in a program?
- Array
- Pointer
- Structure
- Function
- Union
Which of the following is the first operation performed on a linked list?
- Traversing a linked list
- Inserting an item into a linked list
- Creating a linked list
- Deleting an item from the linked list
- Searching an item in a linked list
______________ is a tree in which each leaf node is at the same distance from the root.
- Binary tree
- Complete tree
- Subtree
- Leaf node
- Root node