TIME COMPLEXITY QUIZ CODING CLUB

TIME COMPLEXITY QUIZ CODING CLUB

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Computer

Computer

10th Grade

15 Qs

[Python OOP] Inheritance, special function

[Python OOP] Inheritance, special function

12th Grade

7 Qs

Recursive Algorithms

Recursive Algorithms

12th Grade

15 Qs

Coding CHASE

Coding CHASE

10th Grade - University

15 Qs

Scratch Prog. - (SURNAME ONLY)

Scratch Prog. - (SURNAME ONLY)

9th Grade

14 Qs

Quiz - print() function

Quiz - print() function

9th Grade

10 Qs

Module 08 - Lists

Module 08 - Lists

10th Grade

10 Qs

Python - Creating Programs

Python - Creating Programs

9th - 11th Grade

14 Qs

TIME COMPLEXITY QUIZ CODING CLUB

TIME COMPLEXITY QUIZ CODING CLUB

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Noobmaster Noobmaster

Used 2+ times

FREE Resource

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

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?