CSE214 Final Review

CSE214 Final Review

University

44 Qs

quiz-placeholder

Similar activities

Midterm Exam - HCI

Midterm Exam - HCI

University

42 Qs

Kuis Kelas 10

Kuis Kelas 10

12th Grade - University

46 Qs

Excel Cơ bản 1.5 (7)

Excel Cơ bản 1.5 (7)

KG - University

47 Qs

ACO.C1.HTTT

ACO.C1.HTTT

University

44 Qs

Computer memory

Computer memory

University

45 Qs

Pre-Lab-Net. Mgmt.-Exam

Pre-Lab-Net. Mgmt.-Exam

University

40 Qs

Have fun with quiz !

Have fun with quiz !

3rd Grade - University

39 Qs

Ujian IoT PTS 2024 45 Soal

Ujian IoT PTS 2024 45 Soal

11th Grade - University

45 Qs

CSE214 Final Review

CSE214 Final Review

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Wilson Liang

Used 72+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

44 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Order from least to greatest Time complexity

O(3), O(log n), O(n log n), O(10n), O(n^2), O(n^10), O(2^n), O(n!), O(n^n)

O(3), O(log n), O(10n), O(n^2), O(n log n), O(n^10), O(2^n), O(n!), O(n^n)

O(3), O(log n), O(10n), O(n log n), O(n^2), O(2^n), O(n^10), O(n^n), O(n!)

O(3), O(log n), O(10n), O(n log n), O(n^2), O(n^10), O(2^n), O(n!), O(n^n)

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Evaluate the time complexity

O(N)

O(N^2)

O(N log N)

O(1)

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

For N=20, what will be printed?

4.

MULTIPLE SELECT QUESTION

3 mins • 1 pt

Media Image

Consider the following method, which is supposed to remove all nodes of a linked list containing a value and return the new head. Select the 2 test cases where the removeVal(head,1); performs as expected

1 -> 2 -> 3 -> 4

2 -> 1 -> 1 -> 2

2 -> 2 -> 2 -> 2

2 -> 1 -> 2 -> 2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the benefits of using a DOUBLY linked list rather than a SINGLY

(You have access to head and tail)

Remove Head becomes faster

Remove Tail becomes faster

Insert Tail becomes faster

Doubly uses less space than singly

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For a stack implemented using a singly linked list with top = head and no tail reference, what are the time complexities?

PUSH: O(1)

POP: O(1)

PUSH: O(1)

POP: O(N)

PUSH: O(N)

POP: O(1)

PUSH: O(N)
POP: O(N)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For a stack implemented using a singly linked list with bottom = head and top = tail, what are the time complexities?

PUSH: O(1)

POP: O(1)

PUSH: O(1)

POP: O(N)

PUSH: O(N)

POP: O(1)

PUSH: O(N)
POP: O(N)

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?