Linked list

Linked list

Professional Development

10 Qs

quiz-placeholder

Similar activities

Queue

Queue

Professional Development

10 Qs

WSN_1

WSN_1

Professional Development

10 Qs

Podstawy przedsiębiorczości - RYNEK PRACY

Podstawy przedsiębiorczości - RYNEK PRACY

Professional Development

15 Qs

Circular Linked List

Circular Linked List

Professional Development

15 Qs

PythonDS

PythonDS

Professional Development

13 Qs

Java Collections

Java Collections

Professional Development

14 Qs

Binary Search Tree

Binary Search Tree

Professional Development

10 Qs

pythonDS

pythonDS

Professional Development

15 Qs

Linked list

Linked list

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Dr.S.Vidhya KGCAS

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the space complexity needed to store a linked list of n nodes?

o(1)

o(n)

o(n2)

None of the aboce

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity to insert an element to the front of a LinkedList(head pointer given)?

o(1)

o(n)

o(log n)

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following algorithms is not feasible to implement in a linked list?


Linear Search

Merge Sort

Insertion Sort

Binary Search

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following information is stored in a doubly-linked list’s nodes?

value

address of the next node

address of the previous node

all the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements are true?


Random access of elements at a linked list is not possible.

Arrays have better cache locality than linked list.

The size of linked list is dynamic and can be changed as needed.

All of the above

6.

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 will be?


O(log n)

O(n)

O(1)

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which scenario is the Linked List an excellent data structure? 

When you need to insert elements at the end of the list 

When you need to insert elements in the middle of the list 

When you need to access elements in sequential order 

When you need quick access to elements by index 

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?