ALDA - Week 03

ALDA - Week 03

University

10 Qs

quiz-placeholder

Similar activities

DAA Quiz 1

DAA Quiz 1

University

10 Qs

Time and Space Complexity

Time and Space Complexity

University

15 Qs

Analysis of Algorithms

Analysis of Algorithms

University

10 Qs

Searching and Sorting

Searching and Sorting

University - Professional Development

15 Qs

Sorting in Data Structures

Sorting in Data Structures

University

15 Qs

Circular array quiz

Circular array quiz

University

10 Qs

Final Practice

Final Practice

University

7 Qs

Time and Space Complexity

Time and Space Complexity

University

13 Qs

ALDA - Week 03

ALDA - Week 03

Assessment

Quiz

Computers

University

Medium

Created by

Team Informatica

Used 460+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What kind of complexities are we interested in?

Time

Space

Running time

Cognitive

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is measured with time complexity?

The time from start to end

Number of elementary operations

Only loops

CPU cycles

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Algorithm A has a complexity O(n log(n))

Algorithm B has complexity O(n)

Does this mean that algorithm B is always faster than A?

Yes

No

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We have the following list of numbers: 10 4 1 23 2 23 5 9 7

We want to find the number 9, which algorithm should we use?

Linear search: O(n)

Binary search: (logn)

Linear search

Binary search

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following answers has the time complexities in the correct order from faster to slowest?

O(1), O(logn), O(n), O(nlogn), O(n^2), O(2^n), O(n!)
O(n!), O(2^n), O(n^2), O(nlogn), O(n), O(logn), O(1)
O(n), O(logn), O(1), O(n^2), O(2^n), O(nlogn), O(n!)

O(1), O(logn), O(n), O(nlogn), O(n^2), O(n!), O(2^n)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the complexity of this algorithm?

O(n)

O(n^2)

O(n*logn)

O(logn)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the complexity of this algorithm?

O(n)

O(2n)

O(2^n)

O(nlogn)

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?