CSE MCQs :: Data Structure MCQs
-
What is the output of the following piece of code?public class array{public static void main(String args[]){int []arr = {1,2,3,4,5};System.out.println(arr[5]);}}
- Choose the code snippet which inserts a node to the head of the list?
- Which of the following can be used to delete an element from the rear end of the queue?
- What is the time complexity of inserting a node in a doubly linked list?
- What is not a disadvantage of priority scheduling in operating systems?
- A data structure in which elements can be inserted or deleted at/from both the ends but not in the middle is?
- What is the need for a circular queue?
- In linked list implementation of a queue, from where is the item deleted?
- What would be the asymptotic time complexity to find an element in the linked list?
- Which of the following points is/are true about Linked List data structure when it is compared with array