Search Header Logo

Data Structures Review

Authored by Data Structures

Computers

University

Used 8+ times

Data Structures Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Quick Sort runs in O(n) if all elements are equal.

True

False

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Binary search is an example of binary recursion

True

False

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Bucket sort is always better than quick sort because it has linear time complexity.

True

False

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Let n be the number of elements in the stack. The push method of the stack runs in

O(logn)

O(n)

O(n^2)

O(1)

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The space usage of ArrayQueue is O(n) where n is the number of elements in the queue.

True

False

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

One of these is not a method from the Positional List ADT

addFirst(p, e)

addBefore(p, e)

set(p, e)

addAfter(p, e)

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The return type of the 'set' method of Positional List is

void

E

Position<E>

None of the above

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?

Discover more resources for Computers