Search Header Logo

DS Quiz 2

Authored by Vishnuvardhan Reddy Avija

Computers

University

Used 3+ times

DS Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst case runtime of linear search(recursive) algorithm?

O(n)

O(logn)

O(n2)

O(nx)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a disadvantage to the usage of array?

Fixed size

There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size

Insertion based on position

Accessing elements at specified positions

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity to count the number of elements in the linked list?

O(1)

O(n)

O(logn)

O(n2)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Linked lists are not suitable for the implementation of ___________

Insertion sort

Radix sort

Polynomial manipulation

Binary search

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Linked list is considered as an example of ___________ type of memory allocation.

Dynamic

Static

Compile time

Heap

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following points is/are not true about Linked List data structure when it is compared with an array?

Arrays have better cache locality that can make them better in terms of performance

It is easy to insert and delete elements in Linked List

Random access is not allowed in a typical implementation of Linked Lists

Access of elements in linked list takes less time than compared to arrays

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would be the asymptotic time complexity to find an element in the linked list?

O(1)

O(n)

O(n2)

O(n4)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?