Exam 23: Asynchronous Programming With Async and Await

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A MethodInvoker (namespace System.Windows.Forms)is a ________.

(Multiple Choice)
4.9/5
(28)

When you await a Task,if that Task has already completed,execution simply continues.Otherwise,control returns to ________ until the result of the Task is available.Once the Task completes,the async method continues execution.

(Multiple Choice)
4.8/5
(33)

When updating a control from a non-GUI thread,you must ________.

(Multiple Choice)
4.9/5
(32)

An async method executes its body in ________.

(Multiple Choice)
4.8/5
(33)

Executing calculations in multiple threads on a single-core processor can actually take ________ compared to simply performing them synchronously,due to the overhead of sharing one processor among the app's threads,all the other apps executing on the computer at the same time and the chores the operating system was performing.

(Multiple Choice)
4.7/5
(35)

________ programming is a technique for writing apps containing tasks that can execute asynchronously,which can improve app performance and GUI responsiveness in apps with long-running or compute-intensive tasks.

(Multiple Choice)
4.8/5
(34)

Tasks that proceed independently of one another are said to execute ________ and are referred to as ________ tasks.

(Multiple Choice)
4.8/5
(38)

Which of the following statements is false

(Multiple Choice)
4.9/5
(33)

The _________ delegate represents any method that takes no arguments and returns a result.

(Multiple Choice)
4.9/5
(33)

A ListBox's ________ property indicates the source of the data that populates the ListBox's Items collection.

(Multiple Choice)
4.8/5
(25)

Class HttpClient's ________ method starts a new Task< string > in a separate thread and uses the URL specified as the method's string argument to request information from a web server.

(Multiple Choice)
4.8/5
(31)

A ListBox's ________ property indicates which property of each item in the data source should be displayed in the ListBox.

(Multiple Choice)
4.8/5
(31)

An async method can perform other statements between those that launch an asynchronous Task and await the Task's results.In such as case,the method continues executing those statements after launching the asynchronous Task until it reaches ________.

(Multiple Choice)
4.7/5
(35)

If a long-running calculation were to be performed synchronously in a GUI app,________.

(Multiple Choice)
4.9/5
(39)

A method is declared async to indicate to the compiler that the method will ________.

(Multiple Choice)
4.8/5
(41)

Many classes for web access,file processing,networking,image processing and more contain methods that return ________ objects for use with async and await,so you can take advantage of the asynchronous programming model.

(Multiple Choice)
4.9/5
(28)

You can wait for multiple Tasks to complete by awaiting the result of Task static method ________.

(Multiple Choice)
4.9/5
(35)
Showing 21 - 37 of 37
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)