Data Structures Review

Data Structures Review

University

12 Qs

quiz-placeholder

Similar activities

07 - Map

07 - Map

University

15 Qs

Algorithms - Time Complexity

Algorithms - Time Complexity

University

10 Qs

C++ Searches and Sorts

C++ Searches and Sorts

University - Professional Development

15 Qs

Informatik II Quiz 1

Informatik II Quiz 1

University

11 Qs

BCSC0006 - Quiz 2 - Big-Oh Notation

BCSC0006 - Quiz 2 - Big-Oh Notation

University

10 Qs

CodeCadette

CodeCadette

University

15 Qs

PSP Week 5

PSP Week 5

University

10 Qs

Strategi Algoritmik dan Pemrograman

Strategi Algoritmik dan Pemrograman

University

15 Qs

Data Structures Review

Data Structures Review

Assessment

Quiz

Computers

University

Hard

Created by

Data Structures

Used 8+ times

FREE Resource

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

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?