Vidyalelo
Data Structure · all questions

Linked Lists in Data Structures
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

103

Questions

5/6

Page

Pick an option on a question to see the right answer and solution.

Which of the following statements are true?
i) practical application of XOR linked lists are in environments with limited space requirements, such as embedded devices.
ii)xor lists are not suitable because most garbage collectors will fail to work properly with classes or structures that don't contain literal pointers
iii)in order to calculate the address of the next node you need to remember the address of the previous node
iv)xor lists are much efficient than single, doubly linked lists and arrays

Select an option to see the answer and solution.

Which of the following is a typical declaration of a triply linked list in C?

Options are not available for this question.

Select an option to see the answer and solution.

Which among the following is the time complexity for inserting at the beginning of a triply linked list?

Select an option to see the answer and solution.

What is the time complexity improvement of skip lists from linked lists in insertion and deletion?

Select an option to see the answer and solution.

What is buddy memory management of free lists ?

Select an option to see the answer and solution.

How does implicit free lists(garbage collection) works in adding memory to free list ?

Select an option to see the answer and solution.

Given 10,8,6,7,9
swap the above numbers such that finally you got 6,7,8,9,10
so now reverse 10
9,7,6,8,10
now reverse 9
8,6,7,9,10
7,6,8,9,10
6,7,8,9,10
at this point 6 is ahead so no more reversing can be done so stop.
To implement above algorithm which datastructure is better and why ?

Select an option to see the answer and solution.

The self organizing list improves the efficiency of . . . . . . . .

Select an option to see the answer and solution.

Accessing free list very frequently for wide range of addresses can lead to

Select an option to see the answer and solution.

In . . . . . . . . method, whenever a node is accessed, it might move to the head of the list if its number of accesses becomes greater than the records preceding it.

Select an option to see the answer and solution.

What does a xor linked list have?

Select an option to see the answer and solution.

Which of the following represents the space complexity for an unrolled linked list?

Select an option to see the answer and solution.

Free lists are used in

Select an option to see the answer and solution.

Insertion and deletion are much faster in an unrolled linked list than in a singly linked list.

Select an option to see the answer and solution.

Which of the following is not the rearranging method used to implement self-organizing lists?

Select an option to see the answer and solution.

Memory usage in triply linked list is higher than doubly linked list.

Select an option to see the answer and solution.

Which of the following is an advantage of XOR list?

Select an option to see the answer and solution.

Consider the following algorithm to insert an element in a triply linked list.
insertelement(data)
{
    create a node with given data.
    if the linked list is empty
    {
        _____________
        _____________
    }
    if the given node is less than the head
    {
        link the nodes through address and adjust the tail
    }
    if the given node is not less than the head
    {
        if the given node is equal to the head
        {
            new node is inserted on top of the head    
        }
        else
        {
            traverse the linked list to find an element greater than the node and insert in front of the node     
        }   
    } 
}

Which of the following option is best suited to fill the blank?

Options are not available for this question.

Select an option to see the answer and solution.

What is indexed skip list?

Select an option to see the answer and solution.

A node will be rejected while inserting if the given node is already present in a triply linked list.

Select an option to see the answer and solution.