This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
What does Big O notation measure?
The exact runtime of an algorithm in milliseconds
How an algorithm's time or space complexity grows as input size increases
The number of lines of code in a function
Which Python module can you use to measure function execution time?
logging
timeit
random
What is a performance bottleneck?
Any function that takes longer than 1 second to run
The part of code that limits overall performance and consumes the most resources
An error that occurs during code execution
Which profiling tool helps identify which functions consume the most time?
The unittest module
unittest
The cProfile module
cProfile
The sys module
sys
What does a breakpoint do in the Visual Studio Code debugger?
It pauses the program before a specific line runs so that you can inspect variables.
It stops the program permanently and deletes its variables.
It measures how long each function takes to run.
You must answer all questions before checking your work.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?