Exam 23: Asynchronous Programming With Async and Await

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

Visual Basic apps can have multiple threads of execution,where each thread has its own ________ stack,allowing it to execute concurrently with other threads while sharing with them application-wide resources such as memory and processors.This capability is called multithreading.

Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
Verified

A

The async modifier indicates that a method or ________ expression contains at least one await expression.

Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
Verified

B

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.

Free
(Multiple Choice)
4.9/5
(21)
Correct Answer:
Verified

B

Task static method ________ enables you to wait for any one of several Tasks specified as arguments to complete-the method returns the Task that completes first.

(Multiple Choice)
4.9/5
(31)

Visual Basic 2012 introduces the async ________ and await _________ to greatly simplify asynchronous programming,reduce errors and enable your apps to take advantage of the processing power in today's multicore computers,smartphones and tablets.

(Multiple Choice)
4.9/5
(34)

You cannot bind a LINQ query's result directly to a ListBox.You must first ________.

(Multiple Choice)
4.8/5
(37)

Only computers that have ________ can truly execute multiple asynchronous tasks concurrently.

(Multiple Choice)
4.9/5
(33)

A Task promises to ________.

(Multiple Choice)
4.8/5
(33)

Class Task is part of .NET's Task Parallel Library (TPL)for asynchronous programming.Task static method Run receives a ________ as an argument and executes a method in a separate thread.The method returns a Task<TResult> where TResult represents the type of value returned by the method being executed.

(Multiple Choice)
4.9/5
(31)

In .NET 4.5,many classes for web access,file processing,networking,image processing and more have been updated with new methods that return ________ objects for use with async and await,so you can take advantage of this new asynchronous programming model.

(Multiple Choice)
4.8/5
(24)

The mechanisms for determining whether to return control to the async method's caller or continue executing the async method,and for continuing the async method's execution when the asynchronous task completes are handled by ________.

(Multiple Choice)
4.9/5
(35)

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

(Multiple Choice)
4.7/5
(31)

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

(Multiple Choice)
4.8/5
(29)

The async and await mechanism does not create new threads.The method that you call to start an asynchronous task on which you ________ the results is responsible for creating any threads that are used to perform the asynchronous task.

(Multiple Choice)
4.9/5
(42)

An async method executes its body in ________.

(Multiple Choice)
4.7/5
(41)

In effect,an async method allows you to write code that looks like it executes ________,while the compiler deals with the complicated issues of managing asynchronous execution.

(Multiple Choice)
4.9/5
(33)

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

(Multiple Choice)
4.7/5
(39)

When an async method encounters an await expression: If the asynchronous task has already completed,________.

(Multiple Choice)
4.7/5
(32)

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

(Multiple Choice)
4.8/5
(35)

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

(Multiple Choice)
4.9/5
(35)
Showing 1 - 20 of 35
close modal

Filters

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