Algorithm - Complexity

Algorithm - Complexity

University - Professional Development

30 Qs

quiz-placeholder

Similar activities

Copyrights issue

Copyrights issue

University

26 Qs

CCC4 Chapter 1 - Introduction to Computers

CCC4 Chapter 1 - Introduction to Computers

University

25 Qs

Arduino

Arduino

University

25 Qs

Advanced Game Design Midterm

Advanced Game Design Midterm

University

25 Qs

Speed Cup de Ingeniería 2021 (Eliminatoria)

Speed Cup de Ingeniería 2021 (Eliminatoria)

1st Grade - University

25 Qs

Y19 Champions

Y19 Champions

Professional Development

25 Qs

OS Quiz

OS Quiz

University

25 Qs

Video Games

Video Games

KG - University

28 Qs

Algorithm - Complexity

Algorithm - Complexity

Assessment

Quiz

Computers

University - Professional Development

Practice Problem

Hard

Created by

Ritu aggrawal

Used 22+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an Algorithm?

A set of instructions that, when executed, completes a defined task that solves a problem.

The process of breaking apart a problem.

The process of removing unnecessary detail.

A sequence of instructions.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Time Complexity of this program:

def f():

a = 0

for i = 1 to n:

a += i;

b = 0

for i = 1 to m:

b += i;

O(n)

O(m)

O(n+m)

O(n*m)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

constant

polynomial

exponential

none of the mentioned

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

A. constant

B. linear

C. exponential

D. none of the mentioned

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

What is the time complexity of following code:

int a = 0;

for (i = 0; i < N; i++) {

for (j = N; j > i; j--) {

a = a + i + j;

}

}

O(N)

O(N*log(N))

O(N * Sqrt(N))

O(N*N)

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What two pieces of information allow you to analyse an algorithm?

Time Complexity
Space Complexity
Size Complexity
Complex Complexity
Simplicity Complex

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?