Question Detail

COM 101 COM 101 Past Questions Objective Question

Question

Which of the following operator is applied to an operand in an asynchronous method to suspend execution of the method until the awaited task completes?
Options
A AddressOf
B Function Expression
C Await
Correct Answer
D GetType
Correct Answer

Option C is the correct answer.

Detailed Explanation

In asynchronous programming (e.g., in C#), the 'await' operator is applied to a task to suspend execution of the method until the task completes, without blocking the thread.

Hint

This keyword 'waits' for an async operation to complete.

Question Info