Search Header Logo

Quiz3 review SP23

Authored by Fernando Hernandez

Other

University

Quiz3 review SP23
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst case time complexity of searching an Element in a Single Linked list?

O(1)

O(n)

O(nlogn)

O(logn)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first node in a Linked List called?

Head node

Node

Tail node

Starter node

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A node can only hold one data type

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the following code doing?

Deleting a Linked List

Not a valid function

Printing data of a linked list

Searching for an element in a Linked list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the following psuedocode doing?

Adding two Linked List together

Deleting a LL and adding a new one

Wont work

Searching through 2 LL's

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If we use tail in a LL or DLL what is the worst case time complexity for adding at the end?

O(1)

O(n)

O(m) where 1<=m<=n

O(logn)

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

A Max heap is:

Heap where all parent nodes are bigger than children

Heap where all parent nodes are smaller than children

A complete Tree

Represented by an Array

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?