Sasi-FN-03.05.2024

Sasi-FN-03.05.2024

Assessment

Quiz

English

Professional Development

Medium

Created by

CCC info@ccc.training

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?