| 11. |
Which of these standard collection classes implements a linked list data structure?
|
||||||||
|
Answer:
Option (b) |
| 12. |
Which of these method is used to add an element to the start of a LinkedList object?
|
||||||||
|
Answer:
Option (d) |
| 13. |
Which of these methods can be used to delete the last element in a LinkedList object?
|
||||||||
|
Answer:
Option (c) |
| 14. |
Which of this method is used to change an element in a LinkedList Object?
|
||||||||
|
Answer:
Option (b) |
| 15. |
What will be the output of the following Java code snippet?
import java.util.*;
class Linkedlist
{
public static void main(String args[])
{
LinkedList obj = new LinkedList();
obj.add("A");
obj.add("B");
obj.add("C");
obj.addFirst("D");
System.out.println(obj);
}
}
|
||||||||
|
Answer:
Option (d) |
| 16. |
What will be the output of the following Java program?
import java.util.*;
class Linkedlist
{
public static void main(String args[])
{
LinkedList obj = new LinkedList();
obj.add("A");
obj.add("B");
obj.add("C");
obj.removeFirst();
System.out.println(obj);
}
}
|
||||||||
|
Answer:
Option (b) |
| 17. |
Which of these class object can be used to form a dynamic array?
|
||||||||
|
Answer:
Option (d) |
| 18. |
Which of these are legacy classes?
|
||||||||
|
Answer:
Option (d) |
| 19. |
Which of these is the interface of legacy?
|
||||||||
|
Answer:
Option (b) |
| 20. |
What is the name of a data member of class Vector which is used to store a number of elements in the vector?
|
||||||||
|
Answer:
Option (c) |