
DS Quiz for 4th Sep.
Quiz
•
Computers
•
University
•
Medium
Hriday Gupta
Used 1+ times
FREE Resource
Enhance your content
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider an implementation of unsorted singly linked list. Suppose it has its representation with a head and tail pointer. Given the representation, which of the following operation can be implemented in O(1) time?
I.Insertion at the front of the linked list
II. Insertion at the end of the linked list
III.Deletion of the last node of the linked list
IV.Deletion of the front node of the linked list
I and II
I and III
I,II and III
I,II and IV
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the asymptotic time complexity to add an element in the linked list?
O(1)
O(n)
O(n2)
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variant of linked list in which last node of the list points to the first node of the list is?
Singly linked list
Doubly linked list
Circular linked list
Multiply linked list
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In doubly linked lists, traversal can be performed?
Only in forward direction
Only in reverse direction
In both directions
None
5.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
According to today class discussion what should be filled at dotted position
while(ptr->next!=NULL)
{
printf("%d->",ptr->data);
.................................
}
6.
FILL IN THE BLANK QUESTION
10 sec • 1 pt
According to today class discussion what should be filled at dotted position
Hint:- In Create function
temp=(struct node *)malloc(sizeof(struct node));
printf("Enter data:");
scanf("%d",&x);
temp->data=x;
temp->next=NULL;
if(head==NULL)
head=...............................;
Similar Resources on Wayground
10 questions
Programming in C
Quiz
•
University
10 questions
CC 105 - Quiz 2 FINAL TERM
Quiz
•
University
10 questions
INTO Artificial Intelligence
Quiz
•
University - Professi...
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
10 questions
Cybersecurity Fundamentals Week 2 Quiz
Quiz
•
KG - University
10 questions
Quiz 4
Quiz
•
University
10 questions
Machine Learning (Introduction)
Quiz
•
University
11 questions
Determining System Requirements
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University