
C++ 20 (2a) New Features - Coroutine Anatomy
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT provided by C++ coroutines?
suspend_always
Coroutine semantics
co_await keyword
coroutine_handle
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of C++ coroutine facilities?
To be used directly by application developers
To serve as a high-level language for coroutines
To replace traditional function calls
To be used by library writers for creating abstractions
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does a function become a coroutine in C++?
By using the co_await or co_yield keywords
By declaring it with a special coroutine keyword
By using a coroutine library
By defining it in a coroutine namespace
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when the await_ready function returns true?
The coroutine is suspended
The program jumps to the resume point
The coroutine is terminated
The program throws an exception
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If await_suspend returns a coroutine handle, what is the next step?
The program returns control to the caller
The coroutine is suspended indefinitely
The coroutine is resumed immediately
The program terminates
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?