introduction to daa

introduction to daa

University

10 Qs

quiz-placeholder

Similar activities

UX Design

UX Design

University

10 Qs

Modelo de cascada

Modelo de cascada

University

12 Qs

Quizz Internet

Quizz Internet

KG - Professional Development

12 Qs

Jira

Jira

University

15 Qs

EL REGLAMENTO EN UN MINUTO

EL REGLAMENTO EN UN MINUTO

University

12 Qs

CSE_Chap1

CSE_Chap1

University

10 Qs

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

6th Grade - University

14 Qs

Semiconductores

Semiconductores

University

10 Qs

introduction to daa

introduction to daa

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

shanthi p

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?