
DS Quiz for 4th Sep.
Authored by Hriday Gupta
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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=...............................;
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
11 questions
SCM and Logistics
Quiz
•
University
10 questions
Gerry is Retiring!
Quiz
•
University
10 questions
Google Digital Citizenship - Class 1 - True and False
Quiz
•
5th Grade - University
10 questions
UTILITY PROGRAM
Quiz
•
University
10 questions
Data Warehouse - Foundations
Quiz
•
University
7 questions
Data mining-Clustering-1
Quiz
•
University
10 questions
YT-Quiz
Quiz
•
University
10 questions
Python with DataScience
Quiz
•
7th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University