Week 4 – Managing Resources

troubleshooting and debugging techniques week 4

Practice Quiz: Managing Computer Resources

1. How can you profile an entire Python application?

  • Use an @profile label
  • Use the guppy module
  • Use Memory Profiler
  • Use a decorator

2. Your application is having difficulty sending and receiving large packets of data, which are also delaying other processes when connected to remote computers. Which of the following will be most effective on improving network traffic for the application?

  • Running the iftop program
  • Increase storage capacity
  • Increase memory capacity
  • Use traffic shaping

3. What is the term referring to the amount of time it takes for a request to reach its destination, usually measured in milliseconds (ms)?

  • Bandwidth
  • Latency
  • Number of connections
  • Traffic shaping

4. If your computer is slowing down, what Linux program might we use to determine if we have a memory leak and what process might be causing it?

  • top
  • gparted
  • iftop
  • cron

5. Some programs open a temporary file, and immediately _____ the file before the process finishes, then the file continues to grow, which can cause slowdown.

  • open
  • close
  • delete
  • write to

Devendra Kumar

Project Management Apprentice at Google

Leave a Reply