Link List MCQs & GATE PYQs - Data Structure [ GATE CSE ]

Process Management MCQs & GATE PYQs - Operating Systems

Master Link List Concepts for your Data Structure course and the GATE exam. This guide covers key concepts, essential MCQs, and previous year questions (PYQs) to sharpen your skills in Link List

Link List

Link List Concepts, tricks , Tips

Practice MCQs & GATE PYQs

1. In a circular linked list organisation, insertion of a record involves modification of: [ GATE CSE 1987 ]

2. Linked lists are not suitable data structures for which one of the following problems? [ GATE CSE 1994 ]

3. For merging two sorted lists of sizes m and n into a sorted list of size m+n, we require comparisons of: [ GATE CSE 1995 ]

4. A circularly linked list is used to represent a Queue. A single variable p is used to access the Queue. To which node should p point such that both the operations enQueue and deQueue can be performed in constant time? [ GATE CSE 2004 ]

Circular Linked List as a Queue

5. Consider the function f defined below. [ GATE CSE 2003 ]


struct item
{
    int data;
    struct item *next;
};

int f(struct item *p)
{
    return ((p == NULL) || (p->next == NULL) ||
            ((p->data <= p->next->data) &&
             f(p->next)));
}
    

For a given linked list p, the function f returns 1 if and only if:

6. In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is:[ GATE CSE 2002 ]

7. The concatenation of two lists is to be performed in $O(1)$ time. Which of the following implementations of a list should be used? GATE CSE 1997

8. Which of the following statements is true?

  • As the number of entries in a hash table increases, the number of collisions increases.
  • Recursive programs are efficient.
  • The worst case complexity for Quicksort is O(n^2).
  • Binary search using a linear linked list is efficient.

Post a Comment

0 Comments