
Linked List and Stack Quiz
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
Nathaniel Mensah
Used 1+ times
FREE Resource
Enhance your content in a minute
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following sorting algorithms can be used to sort a random linked list with minimum time complexity?
Insertion Sort
Quick Sort
Heap Sort
Merge Sort
2.
MULTIPLE CHOICE QUESTION
30 sec • 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(2*n) -1
n
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Let P be a singly linked list. Let Q be the pointer to an intermediate node x in the list. What is the worst-case time complexity of the best known algorithm to delete the node Q from the list?
O(n)
O(log2 n)
O(logn)
O(1)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst case time complexity of inserting n elements into an empty linked list, if the linked list needs to be maintained in sorted order ?
Θ(n)
Θ(n log n)
Θ(n2)
Θ(1)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following conditions: (a)The solution must be feasible, i.e. it must satisfy all the supply and demand constraints. (b)The number of positive allocations must be equal to m1n21, where m is the number of rows and n is the number of columns. (c)All the positive allocations must be in independent positions. The initial solution of a transportation problem is said to be non-degenerate basic feasible solution if it satisfies:
(a) and (b) only
(a) and (c) only
(b) and (c) only
(a), (b) and (c)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about linked list implementation of stack?
In push operation, if new nodes are inserted at the beginning of linked list, then in pop operation, nodes must be removed from end.
In push operation, if new nodes are inserted at the end, then in pop operation, nodes must be removed from the beginning.
Both of the above
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is an application of Stack Data Structure?
Managing function calls
The stock span problem
Arithmetic expression evaluation
All of the above
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
41 questions
Core 02Knowledge of technical information, quantities and co
Quiz
•
1st Grade - University
41 questions
ಕ್ವಿಜ್ ಸರಣಿ 82: ಡಾ|| ಬಿ. ಆರ್ ಅಂಬೇಡ್ಕರ್ ಜಯಂತಿ ವಿಶೇಷ ಕಾರ್ಯಕ್ರಮ
Quiz
•
University
40 questions
L3 Core 07 Analysing technical information, quantities and c
Quiz
•
KG - University
39 questions
Beyblade Metal Series
Quiz
•
1st Grade - Professio...
40 questions
40 CONCENTRACION SIMULACRO 3.2
Quiz
•
University - Professi...
35 questions
World Cup Quiz
Quiz
•
3rd Grade - Professio...
40 questions
PRELIM EXAM INTERNATIONAL TRADE AND AGREEMENT CRSE 6
Quiz
•
University
40 questions
BLS
Quiz
•
9th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
