Search Header Logo

TIME COMPLEXITY QUIZ CODING CLUB

Authored by Noobmaster Noobmaster

Computers

9th - 12th Grade

Used 2+ times

TIME COMPLEXITY QUIZ CODING CLUB
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the time complexity for this pseudo-code?

O(N+M)

O(N)

O(M)

O(1)

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Will this code run within 1 second in the worst case?

Yes

No

Depends...

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Will this code pass within 1 second?

Yes

No

Maybe

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Will this code run within a second?

YES

NO

MAYBE

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Will this code run in 1 second?

Yes

No

Maybe

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Joe currently has a O(N^2) algorithm for a problem where N is up to 10^5. Joe's solution is unfortunately too slow right now. What should Joe do?

Joe should stop being a noob and come up with a faster algorithm

Joe can try experimenting with faster languages

Joe should try optimizing his code (i.e. use less "expensive" operations)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Joe currently has an O(n!) algorithm. N is up to 8. Joe is wondering if his algorithm is fast enough.

Yes

No

Maybe

Access all questions and much more by creating a free account

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?