introduction to daa

introduction to daa

University

10 Qs

quiz-placeholder

Similar activities

Sort

Sort

University - Professional Development

15 Qs

DSA - 2a

DSA - 2a

University

8 Qs

Sorting Algorithms

Sorting Algorithms

University

14 Qs

Design And Analysis of Algorithms

Design And Analysis of Algorithms

University

10 Qs

Data Structures - Training: Quiz 1

Data Structures - Training: Quiz 1

University

11 Qs

searching quiz

searching quiz

University

10 Qs

DSAA Quiz

DSAA Quiz

University

15 Qs

Algorithms and algorithmic Complexity

Algorithms and algorithmic Complexity

University

10 Qs

introduction to daa

introduction to daa

Assessment

Quiz

Computers

University

Medium

Created by

shanthi p

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of following code:

int a = 0, i = N; while (i > 0) { a += i; i /= 2; }

O(N)

B. O(Sqrt(N))

C. O(N / 2)

D. O(log N)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The complexity of Binary search algorithm is

A. O(n)

B. O(log )

C. O(n2)

D. O(n log n)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The complexity of merge sort algorithm is

A. O(n)

B. O(log n)

C. O(n2)

D. O(n log n)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The worst case complexity for insertion sort is

A. O(n)

B. O(log n)

C. O(n2)

D. O(n log n)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To measure Time complexity of an algorithm Big O notation is used which:

A. describes limiting behaviour of the function

B. characterises a function based on growth of function

C. upper bound on growth rate of the function

D. all of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If for an algorithm time complexity is given by O(1) then complexityof it is:

A. constant

B. polynomial

C. exponential

D. none of the mentioned

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If for an algorithm time complexity is given by O(log2n) then complexity will:

A. constant

B. polynomial

C. exponential

D. none of the mentioned

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?