
Sasi-FN-03.05.2024
Authored by CCC info@ccc.training
English
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider a small circular linked list. How to detect the presence of cycles in this list effectively?
Possible if X is not last node
Possible if size of linked list is even
Possible if size of linked list is odd
Possible if X is not first node
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the best case time complexity of deleting a node in a Singly Linked list?
O (n)
O (n2)
O (nlogn)
O (1)
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following statements are not correct with respect to Singly Linked List(SLL) and Doubly Linked List(DLL)?
Complexity of Insertion and Deletion at known position is O(n) in SLL and O(1) in DLL
SLL uses lesser memory per node than DLL
DLL has more searching power than SLL
Number of node fields in SLL is more than DLL
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following data structures can be used for parentheses matching?
n-ary tree
queue
priority queue
stack
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Minimum number of queues to implement stack is ___________
3
4
1
2
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Given pointer to a node X in a singly linked list. Only one pointer is given, pointer to head node is not given, can we delete the node X from given linked list?
Possible if X is not last node
Possible if size of linked list is even
Possible if size of linked list is odd
Possible if X is not first node
7.
MULTIPLE CHOICE QUESTION
2 mins • 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
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?