CC104 - Final Exam

CC104 - Final Exam

University

43 Qs

quiz-placeholder

Similar activities

Informatika

Informatika

7th Grade - University

40 Qs

Java

Java

University - Professional Development

42 Qs

Câu hỏi về danh sách trong Python

Câu hỏi về danh sách trong Python

University

46 Qs

Cấu trúc dữ liệu và giải thuật

Cấu trúc dữ liệu và giải thuật

University

44 Qs

LearnTube Data Structure and Algorithm Quiz 11/2/23

LearnTube Data Structure and Algorithm Quiz 11/2/23

University

42 Qs

Sorting/Searching Algo and Stack

Sorting/Searching Algo and Stack

University

40 Qs

алгоритм 3

алгоритм 3

University

40 Qs

Trắc nghiệm DSA - Phần 1

Trắc nghiệm DSA - Phần 1

University

48 Qs

CC104 - Final Exam

CC104 - Final Exam

Assessment

Quiz

Other

University

Medium

Created by

Jerome Escultura

Used 2+ times

FREE Resource

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)

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?