Linked list

Linked list

Professional Development

10 Qs

quiz-placeholder

Similar activities

Python - Heap

Python - Heap

Professional Development

15 Qs

Emerging Tech

Emerging Tech

Professional Development

15 Qs

Cyber 2 Module 4

Cyber 2 Module 4

9th Grade - Professional Development

15 Qs

M21 Practise Quiz ADS

M21 Practise Quiz ADS

Professional Development

15 Qs

Pelepens Game KNB?

Pelepens Game KNB?

KG - Professional Development

11 Qs

Python_DS2

Python_DS2

Professional Development

10 Qs

dataStructure

dataStructure

Professional Development

14 Qs

TalentNext Test Day-13-Core Java Topics

TalentNext Test Day-13-Core Java Topics

Professional Development

10 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?