CSE214 Final Review

Quiz
•
Computers
•
University
•
Medium
Wilson Liang
Used 72+ times
FREE Resource
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
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
For N=20, what will be printed?
4.
MULTIPLE SELECT QUESTION
3 mins • 1 pt
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
Similar Resources on Wayground
49 questions
Redes de computadores: Unidade 1

Quiz
•
University
39 questions
Examen SABD 2

Quiz
•
University
45 questions
TIK 2020 PAS XI

Quiz
•
University
48 questions
Bài kiểm tra trắc nghiệm số 1

Quiz
•
University
45 questions
CPSC 131 midterm review

Quiz
•
University
40 questions
Data Structures

Quiz
•
University
41 questions
Configuración y Seguridad de Redes

Quiz
•
University
40 questions
English For IT 5: Unit 3

Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University