Search Header Logo

CC104 - Final Exam

Authored by Jerome Escultura

Other

University

Used 2+ times

CC104 - Final Exam
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

43 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the primary purpose of the Merge Sort algorithm?

To find the minimum element in an array

To divide an array into smaller sub-arrays and then merge them

To sort an array using comparisons

To create a binary search tree

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the best-case time complexity of Merge Sort?

O(n)

O(n log n)

O(n^2)

O(log n)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about Quick Sort?

It always performs better than Merge Sort

It is a divide-and-conquer algorithm

It requires more memory than Merge Sort

It cannot be implemented recursively

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The time complexity of Quick Sort in the worst case is:

O(n log n)

O(n)

O(n^2)

O(log n)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the basic idea behind the Binary Search algorithm?

Check all elements one by one

Divide the array into two halves and check the middle element

Sort the array and then search for an element

Search in the entire array sequentially

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the time complexity of Binary Search?

O(n)

O(n log n)

O(log n)

O(n^2)

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the space complexity of Merge Sort?

O(1)

O(log n)

O(n)

O(n^2)

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?