Homechevron_rightEngineeringchevron_rightComputer Sciencechevron_rightData Structurechevron_rightWhich data structure allows deleting data elements from and inserting ...

Which data structure allows deleting data elements from and inserting ...

  • Q. Which data structure allows deleting data elements from and inserting at rear?
  • filter_dramaExplanation
    Answer is : B
    None.

Discussion

    No one started the discussion yet. Break the ice and start the conversation.
    Please Login to be part of the discussion.

Similar Questions

  • 1. Which data structure allows deleting data elements from front and inserting at rear?
  • filter_dramaExplanation
    Answer is : B
    None.
  • 2. Which of the following properties is associated with a queue?
  • filter_dramaExplanation
    Answer is : B
    None.
  • 3. What are the advantages of priority queues?
  • filter_dramaExplanation
    Answer is : D
    None.
  • 4. In linked list implementation of a queue, the important condition for a queue to be empty is?
  • filter_dramaExplanation
    Answer is : A
    None.
  • 5. Select the function which performs insertion at the front end of the dequeue?

    a)
    
    public void function(Object item)
    {
     Node temp = new Node(item,null);
     if(isEmpty())
     {
      temp.setNext(trail);
      head.setNext(temp);
     }
     else
     {
      Node cur = head.getNext();
      temp.setNext(cur);
      head.setNext(temp);
     }
     size++;
    }
    
    b)
    
    public void function(Object item)
    {
     Node temp = new Node(item,null);
     if(isEmpty())
     {
      temp.setNext(trail);
      head.setNext(trail);
     }
     else
     {
      Node cur = head.getNext();
      temp.setNext(cur);
      head.setNext(temp);
     }
     size++;
    }
    
    c)
    
    public void function(Object item)
    {
     Node temp = new Node(item,null);
     if(isEmpty())
     {
      Node cur = head.getNext();
      temp.setNext(cur);
      head.setNext(temp);
     }
     else
     {
      temp.setNext(trail);
      head.setNext(temp);
     }
     size++;
    }
    
    d) None of the mentioned
  • filter_dramaExplanation
    Answer is : A
    None.

Data StructureTopics

leaderboardLeaderboard
  • Rahul Kumar

    191 Points

  • VIKRAM JEET

    54 Points

  • GEETHIKA CHOWDARY

    53 Points

  • sunita saini

    52 Points

  • Zain

    49 Points