Home / MCQ Bank / Computer
Computer Collections Framework In Java

Which of these method is used to add an element to the start of a LinkedList object?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • addFirst()

Related Computer Questions

Which property makes top tree a binary tree? What is the primary role of the Pig UDF (User Defined Function)? How many times is the function recursive_search_num() called when the following code is executed? #include<stdio.h> int recursive_search_num(int *arr, int num, int idx, int len) { if(idx == len) return -1; if(arr[idx] == num) return idx; return recursive_search_num(arr, num, idx+1, len); } int main() { int arr[8] ={1,2,3,3,3,5,6,7},num=5,len = 8; int indx = recursive_search_num(arr,num,0,len); printf("Index of %d is %d",num,indx); return 0; } In MS-Word, for what does ruler help? How many values are there for the object-fit property?