Skip to content
KALANBLON
Show contents

Chapter 7 of 7 · 10 min

Quiz: performance and architecture

Complexity, async and layered architecture: last quiz of the advanced Python path. You need 70 % correct answers to pass the course.

Quiz

5 questions · pass mark: 70%

  1. 1.To test very often whether an id belongs to a large collection, which structure should you choose?

    One answer

  2. 2.A process compares each item of a list with all the others. The data is multiplied by 10: the time is multiplied by about…

    One answer

  3. 3.When does asyncio really speed a program up? (several answers)

    Several answers possible

  4. 4.Complete the keyword that marks a non-blocking wait point in a coroutine.

    Complete the code

    async def weather(city):
        _____ asyncio.sleep(1)
        return city
  5. 5.In the booking project, why does the service receive its repository as a parameter?

    One answer

Your progress is saved on this device. Create a free account to keep your progress on all your devices.