adplus-dvertising
frame-decoration

Question

Where does a new element be inserted in linked list implementation of a queue?

a.

Head of list

b.

Tail of list

c.

At the centre of list

d.

All the old entries are pushed and then the new element is inserted

Answer: (b).Tail of list

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Where does a new element be inserted in linked list implementation of a queue?

Similar Questions

Discover Related MCQs

Q. If the size of the array used to implement a circular queue is MAX_SIZE. How rear moves to traverse inorder to insert an element in the queue?

Q. Which of these standard collection classes implements all the standard functions on list data structure?

Q. Which of this method is used to make all elements of an equal to specified value?

Q. Which of these method of Array class is used sort an array or its subset?

Q. Which of these methods can be used to search an element in a list?

Q. Which of these interface declares core method that all collections will have?

Q. Which of these interface handle sequences?

Q. Which of this interface must contain a unique element?

Q. Which of these is a Basic interface that all other interface inherits?

Q. Which of these is static variable defined in Collections?

Q. Which class is used to generate random number?

Q. Which method is used to generate boolean random values in java?

Q. What is the return type of Math.random() method?

Q. Random is a final class?

Q. What is the range of numbers returned by Math.random() method?

Q. How many bits are used for generating random numbers?

Q. What would be the output of following code snippet?

int a = random.nextInt(15) + 1;

Q. What would be the output of following code snippet?

int a = random.nextInt(7) + 4;

Q. Math.random() guarantees uniqueness?

Q. What is the signature of Math.random() method?