Search Header Logo

cs102-1

Authored by Team Stella

Computers

University

cs102-1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

49 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An L-1 (L negative 1) case occurs when the deleted node is in the left subtree of the closest imbalanced ancestor and the balanced factor of the right child of the ancestor is -1​. What is the solution to this rotational case?

double rotate starting with a left rotate followed by a right rotate
double rotate starting with a right rotate followed by a left rotate
single left rotate
single right rotate

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An L1 case occurs when the deleted node is in the left subtree of the closest imbalanced ancestor and the balanced factor of the right child of the ancestor is 1.​ What is the solution to this rotational case?

double rotate starting with a left rotate followed by a right rotate
double rotate starting with a right rotate followed by a left rotate
single left rotate
single right rotate

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An R-1 (R negative 1) case occurs when the deleted node is in the right subtree of the closest imbalanced ancestor and the balanced factor of the left child of the ancestor is -1.​ What is the solution to this rotational case?

double rotate starting with a left rotate followed by a right rotate
double rotate starting with a right rotate followed by a left rotate
single left rotate
single right rotate

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Applying Bubble Sort in this given list: 120, 90, 30, 200, 150, 40, 20. What will be the resulting list after the third pass?

30 - 90 - 40 - 20 - 120 - 150 - 200
30 - 40 - 20 - 90 - 120 - 150 - 200
20 - 30 - 90 - 40 - 120 - 150 - 200
30 - 90 - 40 - 120 - 20 - 150 - 200

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Applying Bubble Sort in this given list: 120, 90, 30, 200, 150. How many passes will be needed before the algorithm stops?

3
2
4
5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Applying Insertion Sort in this given list: 120, 90, 30, 200, 150. How many passes or iterations will be needed before the algorithm stops?

3
2
4
5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Applying Selection Sort in this given list: 120, 90, 30, 200, 150. How many passes or iterations will be needed before the algorithm stops?

3
2
4
5

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?