cs102-1

cs102-1

University

49 Qs

quiz-placeholder

Similar activities

Comptia Network+ chapter 1-3 exam

Comptia Network+ chapter 1-3 exam

11th Grade - University

45 Qs

Design and Analysis of Algorithms

Design and Analysis of Algorithms

University

44 Qs

Section 3: Scheduling (11-16)

Section 3: Scheduling (11-16)

University

44 Qs

UTS Struktur Data

UTS Struktur Data

University

53 Qs

Big Data Analytics Quiz

Big Data Analytics Quiz

University

50 Qs

CC04 PRELIM

CC04 PRELIM

University

50 Qs

AI Revision

AI Revision

University

50 Qs

Networking - Practice Test #1

Networking - Practice Test #1

9th Grade - University

47 Qs

cs102-1

cs102-1

Assessment

Quiz

Computers

University

Hard

Created by

Team Stella

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?