
Linked List

Quiz
•
Computers
•
University
•
Hard
Aksheya Suresh
Used 30+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following function do for a given Linked List with first node as head?
void fun1(struct node* head)
{
if(head == NULL)
return;
fun1(head->next);
printf("%d ", head->data);
}
Prints all nodes of linked lists
Prints all nodes in reverse order of linked lists
Prints alternate nodes of linked lists
Prints alternate nodes in reverse order of linked lists
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To check isEmpty condition in Circular Linked List, fill in the blanks
int isEmpty()
{
if(_________________)
return 1;
else
return 0;
}
List->Next==NULL
List->Next==List
List->Prev==NULL
List->Prev==List
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the Find() Function in SLL. Fill in the blanks
Node * Find(Node * List,int x)
{
Node * Position;
Position=List->Next;
while(_________________________)
Position=Position->Next;
return Position;
Position!=NULL && Position->Element!=x
Position->Next!=NULL && Position->Element!=x
Position!=List && Position->Element!=x
Position->Next!=List && Position->Element!=x
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the FindPrevious() Function in SLL. Fill in the blanks
Node * FindPrevious(Node * List,int x)
{
Node * Position;
Position=List->Next;
while(_________________________)
Position=Position->Next;
return Position;
Position!=NULL && Position->Next->Element!=x
Position!=NULL && Position->Element!=x
Position->Next!=NULL && Position->Next->Element!=x
Position->Next!=NULL && Position->Element!=x
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To check isLast() condition in Circular Linked List, fill in the blanks
int isLast(Node * Position, Node * List)
{
if(_________________)
return 1;
else
return 0;
}
Position->Next==NULL
List->Next==NULL
Position->Next==List
List->Next==List
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Tick the routines which is same for CLL and SLL
InsertMid
DeleteMid
DeleteBegin
InsertBegin
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following function do for a given Linked List with first node as head?
void fun1(struct node* head)
{
if(head == NULL)
return;
head=head->next->next;
printf("%d ", head->element);
}
Print all elements in order of linked list
Print all elements in reverse order of linked list
Print alternate elements in order of linked list
Print alternate elements in reverse order of linked list
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
NSCC-CODE TO COIN

Quiz
•
University
15 questions
Data Structure

Quiz
•
University
15 questions
DS MODULE 3 LINKED LIST

Quiz
•
University
20 questions
Data Structures and Algorithm

Quiz
•
University
20 questions
Data Structures Quiz

Quiz
•
University
20 questions
DSA - QA3

Quiz
•
University
16 questions
susulan dan ramedial Uji Pemahaman Komputasional

Quiz
•
9th Grade - University
20 questions
Quiz tentang Ordered dan Unordered Linked List

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