DAA - CSE A

DAA - CSE A

University

20 Qs

quiz-placeholder

Similar activities

Knowledge Knockout[Quiz Round](2nd-4th years)

Knowledge Knockout[Quiz Round](2nd-4th years)

University

15 Qs

Algorithm Analysis

Algorithm Analysis

University

21 Qs

DS- UNIT-1

DS- UNIT-1

University

20 Qs

Quiz on Standard Algorithms

Quiz on Standard Algorithms

10th Grade - University

20 Qs

C++ Searches and Sorts

C++ Searches and Sorts

University - Professional Development

15 Qs

Sorting algorithms I

Sorting algorithms I

University

21 Qs

Section J Exam

Section J Exam

University

19 Qs

2 Big oh

2 Big oh

University

20 Qs

DAA - CSE A

DAA - CSE A

Assessment

Quiz

Computers

University

Hard

Created by

Dr.L.Josephine Dept

Used 6+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is used for solving the N Queens Problem?

Greedy Algorithm

Dynamic Programming

Backtacking

Sorting

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following sorting algorithms provide the best time complexity in the worst-case scenario?

Merge Sort

Quick Sort

Bubble Sort

Selection Sort

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a Divide and Conquer algorithm?

Bubble Sort

Selection Sort

Heap Sort

Merge Sort

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following data structure is used to perform recursion?

Stack

Queue

Array

Linked List

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the following code snippet in C++?

void solve() {

string s = "scaler";

int n = s.size();

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

{ s = s + s[i]; }

cout << s << endl; }

O(n)

O(n^2)

O(1)

O(log n)

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the time complexity of the binary search algorithm?

O(n)

O(1)

O(log2n)

O(n^2)

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The worst-case time complexity of Quicksort is?

O(n)

O(n^2)

O(nlogn)

O(1)

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?