
Data Structures

Quiz
•
Computers
•
University
•
Medium
SURESH K
Used 3+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 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 alternate nodes of Linked List
Prints all nodes of linked list in reverse order
Print alternate nodes in reverse order
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is
Log(2^n)
n/2
Log n
n
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A circularly linked list is used to represent a Queue. A single variable p is used to access the Queue. To which node should p point such that both the operations enQueue and deQueue can be performed in constant time?
Rear Node
Front Node
Not possible with one pointer
node next to front
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What are the application(s) of linked list?
Implementation of stacks and queues
Maintaining a directory of names
None of the above
Both a and b
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following information is stored in a doubly-linked list’s nodes?
Value of the node
Address of the next node
Address of the previous node
All the above
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A linear list of elements in which deletion can be done from one end (front) and insertion can take place only at the other end (rear) is known as _____________
Queue
Stack
Tree
Linked list
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which principle is followed by the Queue data structure?
LIFO
FILO
FIFO
LILO
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
Ulangan Informatika Kelas 7

Quiz
•
7th Grade - University
35 questions
end of year Quiz

Quiz
•
12th Grade - University
45 questions
Sorting, Searching and Big O Review

Quiz
•
9th Grade - University
35 questions
UH BERPIKIR KOMPUTASIONAL 2024

Quiz
•
University
35 questions
IT-OOPRGO21 PRELIM

Quiz
•
University
42 questions
Understanding ADA Concepts

Quiz
•
University
41 questions
Ujian Informatika Kelas VIII

Quiz
•
8th Grade - University
36 questions
Sistem Berkas

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University