ASSESSMENT 1

ASSESSMENT 1

University

20 Qs

quiz-placeholder

Similar activities

DSA - revision Quiz

DSA - revision Quiz

University

21 Qs

Sorting and Searching Algorithms Quiz - Batch 1

Sorting and Searching Algorithms Quiz - Batch 1

University

20 Qs

Technical Assessment

Technical Assessment

University

20 Qs

Quiz 1 (TDS Algorithm Design and Analysis - DA1A)

Quiz 1 (TDS Algorithm Design and Analysis - DA1A)

University

20 Qs

Time and Space Complexity

Time and Space Complexity

University

20 Qs

Big oh notation

Big oh notation

University

15 Qs

2 Big oh

2 Big oh

University

20 Qs

Sorting Algorithms II

Sorting Algorithms II

University

18 Qs

ASSESSMENT 1

ASSESSMENT 1

Assessment

Quiz

Computers

University

Hard

Created by

Sandhya .

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q1. Which of the following is NOT a type of algorithm design paradigm?

  • A) Divide and Conquer

  • B) Greedy

  • C) Dynamic Programming

  • D) Static Programming

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q2. In the context of sorting algorithms, what is the average-case time complexity of Quick Sort?

  • A) O(n)

  • B) O(n log n)

  • C) O(n^2)

  • D) O(log n)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q3. What is the worst-case time complexity of Bubble Sort?

  • A) O(n)

  • B) O(n log n)

  • C) O(n^2)

  • D) O(log n)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q4. Which algorithm is efficient for large datasets and has a time complexity of O(n log n)?

  • A) Insertion Sort

  • B) Merge Sort

  • C) Selection Sort

  • D) Bubble Sort

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q5. In the context of algorithms, what does 'Big O notation' describe?

  • A) The average-case time complexity of an algorithm

  • B) The space complexity of an algorithm

  • C) The upper bound of an algorithm's time complexity

  • D) The lower bound of an algorithm's space complexity

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q6. What is the time complexity of the following code?

for (int i = 0; i < n; i++) {

for (int j = 0; j < i; j++) {

// Constant time operation

}

}

  • A) O(n)

  • B) O(n log n)

  • C) O(n^2)

  • D) O(n^3)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q7. Find the time complexity of the following code:

for (int i = 0; i < n; i++) {

for (int j = 0; j < n; j++) {

for (int k = 0; k < n; k++) {

// Constant time operation

}

}

}

  • A) O(n)

  • B) O(n2)

  • C) O(n3)

  • D) O(2n)

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?