Search Header Logo

ASSESSMENT 1

Authored by Sandhya .

Computers

University

Used 2+ times

ASSESSMENT 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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)

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?