Data Structure and Algorithm

Quiz
•
Computers, Mathematics
•
University
•
Hard
inocencio madriaga
Used 91+ times
FREE Resource
43 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
If for an algorithm time complexity is given by O(n) then complexity of it is:
linear
exponential
constant
none of the mentioned
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Data in the data structures are processed by operations like insertion, deletion, sorting, merging and ______________
A. Traversing
B. Searching
C. Retrieval
D. Both A and B
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the insertion and deletion happens from both the ends then the deletion is called a ______
Deque
Enqueue
peek
full
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Process of inserting an element in stack is called
Insert
Pop
Overflow
Push
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?
CBA
ABDC
ABCD
DCAB
6.
MULTIPLE CHOICE QUESTION
2 mins • 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
Prints alternate nodes in reverse order
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
. Match the following.
a) Completeness i) How long does it take to find a solution
b) Time Complexity ii) How much memory need to perform the search.
c) Space Complexity iii) Is the strategy guaranteed to find the solution when there in one.
a-iii, b-i, c-ii
a-i, b-ii, c-iii
a-i, b-iii, c-ii
a-iii, b-ii, c-i
Create a free account and access millions of resources
Similar Resources on Wayground
39 questions
DaSA FINAL

Quiz
•
University
40 questions
Python Final

Quiz
•
University
40 questions
9th Grade - IT Programming - 2nd Cycle Exam

Quiz
•
9th Grade - University
43 questions
Kisi-Kisi Soal Informatika

Quiz
•
10th Grade - University
40 questions
Eng-103 Vocab 2

Quiz
•
University
45 questions
Math Final Review

Quiz
•
University
40 questions
REMIDI SAS KELAS 9

Quiz
•
9th Grade - University
45 questions
Event Driven Handouts 1 & 2

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