Quiz: Coroutines
Quiz on coroutines concepts.
Choose the possible correct answer(s).
1
Identify the true statement(s).
A)
A coroutine is defined as a generator function with yield
in its body.
B)
The first call is next()
because the generator hasn’t started, so it’s not waiting
in a yield
and we can’t send it any data initially.
C)
A coroutine can be in one of three states.
Question 1 of 30 attempted
Get hands-on with 1400+ tech skills courses.