
java list quiz

Quiz
•
Computers
•
University
•
Medium
GOKULRAJ 20ITR028
Used 13+ times
FREE Resource
20 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
2 mins • 2 pts
In Doubly liked list ,number of pointers affected by an insertion operation will be
2.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Which of the following is false about a doubly linked list?
We can navigate in both the directions
It requires more space than a singly linked list
The insertion and deletion of a node take a bit longer
Implementing a doubly linked list is easier than singly linked list
3.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
What differentiates a circular linked list from a normal linked list?
You cannot have the ‘next’ pointer point to null in a circular linked list
It is faster to traverse the circular linked list
You may or may not have the ‘next’ pointer point to null in a circular linked list
Head node is known in circular linked list
4.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
What is the time complexity of searching for an element in a circular linked list?
O(n)
O(1)
O(logn)
O(nlogn)
5.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Which of the following is false about a circular linked list?
Every node has a successor
Time complexity of inserting a new node at the head of the list is O(1)
Time complexity for deleting the last node is O(n)
We can traverse the whole circular linked list by starting from any point
6.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Consider a small circular linked list. How to detect the presence of cycles in this list effectively?
Keep one node as head and traverse another temp node till the end to check if its ‘next points to head
Have fast and slow pointers with the fast pointer advancing two nodes at a time and slow pointer advancing by one node at a time
Cannot determine, you have to pre-define if the list contains cycles
Circular linked list itself represents a cycle. So no new cycles cannot be generated
7.
FILL IN THE BLANK QUESTION
2 mins • 2 pts
In circular linked list ,number of pointers affected by an insertion operation?
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
DATA STRUCTURES QUIZ

Quiz
•
University
20 questions
Quiz 1_DSA

Quiz
•
University
15 questions
Quiz Struktur Data

Quiz
•
University
20 questions
Uji Pemahaman Struktur Data

Quiz
•
9th Grade - University
16 questions
C++ Linked List and Pointer Program Tracing

Quiz
•
University
20 questions
Algorithm questions

Quiz
•
12th Grade - University
20 questions
JDVP Activity

Quiz
•
12th Grade - University
20 questions
Data Structure

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University