
Linked List Quiz
Quiz
•
Mathematics
•
University
•
Hard
SARMILA B
Used 10+ times
FREE Resource
Enhance your content
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of following function in which start is pointing to the first node of the following linked list 1->2->3->4->5->6 ?
1 4 6 6 4 1
1 3 5 1 3 5
1 2 3 5
1 3 5 5 3 1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the optimal time complexity to count the number of nodes in a linked list?
O(n)
O(1)
O(log n)
O(n log n)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity to insert an element to the front of a LinkedList(head pointer given)?
O(n)
O(1)
O(log n)
O(n log n)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of a program to reverse a linked list?
O(n)
O(1)
O(log n)
O(n log n)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following problems can be solved using 2 pointers on linked list?
Detecting cycle in a Linked List
Finding intersection of two linked lists
Finding middle of a linked lists
All the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operations is performed more efficiently by doubly linked list than by linear linked list? (ISRO CS 2001)
Deleting a node whose location is given
Searching an unsorted list for a given item
Inserting a node after the node with a given location
Traversing the list to process each node
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider a singly linked list of the form where F is a pointer to the first element in the linked list and L is the pointer to the last element in the list. The time of which of the following operations depends on the length of the list?
Delete the last element of the list
Delete the first element of the list
Add an element after the last element of the list
Interchange the first two elements of the list
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Ordering Rational Numbers Decimals
Quiz
•
6th Grade - University
21 questions
Comparing Numbers
Quiz
•
KG - Professional Dev...
15 questions
Comparing and Ordering Rational Numbers
Quiz
•
6th Grade - University
20 questions
Ordering and Comparing Integers and Rational Numbers
Quiz
•
6th Grade - University
12 questions
Tree
Quiz
•
University
20 questions
Comparing Decimals
Quiz
•
4th Grade - University
16 questions
Compare Order and Plot Rational Numbers
Quiz
•
7th Grade - University
14 questions
Ordering and Comparing Fractions and Decimals
Quiz
•
6th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade