
Data Structures and Algorithms Quiz

Quiz
•
Computers
•
University
•
Medium
Comprehensive Viva
Used 5+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The worst case complexity of quick sort is ..............
O(n)
O(log n)
O(n2 )
O(n log n)
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of following function for start pointing to first node of following linked list?
1->2->3->4->5->6
void fun(struct node* start)
{ If (start == NULL) return;
printf ("%d ", start->data);
if (start->next != NULL )
fun(start->next->next);
printf ("%d ", start->data); }
1 4 6 6 4 1
1 3 5 1 3 5
1 2 3 5
1 3 5 5 3 1
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The prefix form of A-B/ (C * D ⋀ E) is?
-/*⋀ACBDE
-ABCD*⋀DE
-A/B*C⋀DE
-A/BC*⋀DE
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is a sequence container?
stack
dequeue
queue
set
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Minimum number of queues needed to implement the priority queue is ...........
1
2
3
4
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What can be said about the array representation of a circular queue when it contains only one element?
FRONT = REAR + 1
FRONT = REAR - 1
FRONT = REAR = NULL
None of these
Answer explanation
FRONT=REAR
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
+ A* - BCD is a prefix expression. If A, B, C, D have value 5,4,2,3 respectively the expression evaluates to
13
7
11
15
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Adobe Photoshop 1

Quiz
•
University
30 questions
ADSA Moderate-Level Quiz

Quiz
•
University
32 questions
Chapter 12

Quiz
•
University
25 questions
Lvl 2 Relational Algebra

Quiz
•
University
25 questions
Data Strucuture & Python

Quiz
•
University
25 questions
02/05/2025

Quiz
•
University
30 questions
HCI-Chapter 8

Quiz
•
University
30 questions
DS

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