DAA-SLA

DAA-SLA

Assessment

Quiz

Created by

Ganga lakshmi

Other

University

2 plays

Medium

Student preview

quiz-placeholder

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Greedy algorithm

Dynamic programming

Backtracking

sorting

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Divide and Conquer algorithm?

bubble sort

merge sort

selection sort

radix sort

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the approach followed in Floyd Warshall’s algorithm?

linear programming

dynamic programming

greedy

backtracking

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the following code snippet

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(LOGN)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the technique called in which it does not require extra memory for carrying out the sorting procedure?

stable

unstable

in-place

out-place