CPSC 131 midterm review

CPSC 131 midterm review

University

45 Qs

quiz-placeholder

Similar activities

Iti Round 1

Iti Round 1

University

40 Qs

MCA1002_E1Slot_071222

MCA1002_E1Slot_071222

University

40 Qs

Configuración y Seguridad de Redes

Configuración y Seguridad de Redes

University

41 Qs

Data Structures

Data Structures

University

40 Qs

DS and DAA Comprehensive Viva

DS and DAA Comprehensive Viva

University - Professional Development

40 Qs

English For IT 5: Unit 3

English For IT 5: Unit 3

1st Grade - Professional Development

40 Qs

Quiz

Quiz

University

50 Qs

Cuestionario de Algoritmos Avanzados

Cuestionario de Algoritmos Avanzados

University

42 Qs

CPSC 131 midterm review

CPSC 131 midterm review

Assessment

Quiz

Computers

University

Medium

Created by

Alan Cortez

Used 52+ times

FREE Resource

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Efficiency Class of: enqueue an item into a sll-based queue

O(1)

O(log n)

O(n)

O(n log(n))

O(n^2)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Efficiency Class of: Retrieve the last element from a singly linked list (assuming there isnt a tail pointer)

O(1)

O(log n)

O(n)

O(n log(n))

O(n^2)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Efficiency Class of: Retrieve the front element from a singly linked list

O(1)

O(log n)

O(n)

O(n log(n))

O(n^2)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Efficiency Class of: Retrieve the last element from a doubly linked list with a tail pointer

O(1)

O(log n)

O(n)

O(n log(n))

O(n^2)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Efficiency Class of: Retrieve the last element from a doubly linked list

O(1)

O(log n)

O(n)

O(n log(n))

O(n^2)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Efficiency Class of: Remove all elements in a doubly linked list

O(1)

O(log n)

O(n)

O(n log(n))

O(n^2)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Efficiency Class of: push an element to the back of the vector

O(1)

O(log n)

O(n)

O(1) amoratized

O(n^2)

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?