Data Structures
This test consists of computer programming related questions based on data structures concept.
Questions
Stack is an example of
- static data structure
- complex data structure
- global data structure
- built-in data structure
- both (1) and (2)
Which of the following is called stack underflow operation?
- This is an attempt to delete an element from the already empty stack.
- This is an attempt to remove an element from the top of the stack.
- This is an attempt to insert an element to the top of the stack.
- This is an attempt to delete an element from the already full stack.
- None of the above
Which of the following sorting techniques is based on divide and conquer method?
- Merge sort
- Quick sort
- Shell sort
- Insertion sort
- None of the above
Which of the following is not a stack operation?
- Push
- Pop
- Peek
- Size
- None of the above
Which of the following operations of stack needs parameter in its method?
- Push
- Pop
- isEmpty
- Peek
- None of the above
Which of the following is/are unstable sort(s)?
- Insertion sort
- Quick sort
- Heap sort
- All of the above
- Only (2) and (3)
Which of the following is/are the implementation(s) of the queue data structure?
- List
- Singly linked list
- Array
- All of the above
- None of the above
Which of the following is/are the true statement(s)?
- Queue implementation is used in software development.
- In multitasking environment, the queue technique is used.
- Queues are used in printers.
- All of the above
- Only (2) and (3)
Which of the following is not an application of queue data structure?
- CPU scheduling
- Disk scheduling
- File IO
- Backtracking
- None of the above
File system on a computer is an example of which of the following data structures?
- Stack
- Tree
- Queue
- Array
- None of the above
Routing algorithm is an example of which of the following data structures?
- Stack
- Queue
- Tree
- Array
- None of the above
Graph data structure is used in which of the following?
- Network communication
- Flow of computation
- Data organisation
- All of the above
- Only (1) and (2)
Which of the following is/are the uses of a tree data structure?
- To manipulate hierarchical data
- To make information easy to search
- To manipulate sorted lists of data
- All of the above
- Only (1) and (2)
Which of the following is/are built-in data structures?
- Stack
- Queue
- Array
- All of the above
- Only (1) and (3)
Breadth-first search is an example of which of the following data structures?
- Stack
- Queue
- Array
- Linked list
- None of the above
Which of the following is/are the application(s) of an array data structure?
- Database implementation
- Dynamic memory allocation
- Implementing stack and queue
- To implement hash tables
- All of the above
Which of the following is/are the applications of a linked list data structure?
- To represent polynomials
- Linked list is used in dynamic memory management and in allocation and releasing memory at runtime
- Representing sparse matrix
- All of the above
- Only (1) and (3)
Decimal to binary conversion can be implemented using which of the following data structures?
- Stack
- Queue
- Array
- Both (1) and (3)
- None of the above
Which of the following statements is/are true about the double-ended queue?
- Double-ended queue is an abstract data type.
- In double-ended queue, elements can be added to or removed from either the front or back end.
- Double-ended queue is also called deque.
- All of the above
- Only (1) and (3) are true.
Dijkstra's algorithm is an example of which of the following data structures?
- Queue
- Stack
- Priority queue
- Array
- None of these