cs102-1

cs102-1

University

49 Qs

quiz-placeholder

Similar activities

AWD - Prelim Exam

AWD - Prelim Exam

University

49 Qs

CCNA 2 Module 1-4

CCNA 2 Module 1-4

University

51 Qs

Year 11 January Recap

Year 11 January Recap

University

50 Qs

LATIHAN UNBK TKJ 2020

LATIHAN UNBK TKJ 2020

University

50 Qs

Final Exam - Introduction to Computing

Final Exam - Introduction to Computing

University

52 Qs

CorelDRAW Application Quiz

CorelDRAW Application Quiz

12th Grade - University

51 Qs

IT

IT

University

50 Qs

Midterm Exam for AST 122

Midterm Exam for AST 122

University

50 Qs

cs102-1

cs102-1

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Team Stella

FREE Resource

AI

Enhance your content in a minute

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

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?