Exam 23: Asynchronous Programming With Async and Await

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

Executing asynchronous methods in separate threads on a dual-core computer typically ________ executing the same tasks sequentially.

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

C

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.

Free
(Multiple Choice)
4.7/5
(34)
Correct Answer:
Verified

C

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

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

C

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.8/5
(42)

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

(Multiple Choice)
4.9/5
(27)

Enumerable static method ________ creates a list of elements containing the first argument's value.The length of the list is specified by the second argument.

(Multiple Choice)
4.8/5
(32)

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
(32)

Today's ________ computers,smartphones and tablets enable computers to perform tasks truly concurrently.

(Multiple Choice)
5.0/5
(37)

Task property ________ returns the value returned by a Task.

(Multiple Choice)
4.9/5
(30)

The async ________ and await _________ 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.7/5
(35)

An app that performs synchronous tasks on a single-core computer often takes longer to execute than on a multi-core computer,because ________.

(Multiple Choice)
4.8/5
(35)

Because ________,asynchronous Tasks are frequently used in GUI apps that invoke web services (or perform network communication in general)to ensure that the apps remain responsive.

(Multiple Choice)
4.8/5
(38)

Visual C# 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.

(Multiple Choice)
4.9/5
(27)

Handling short computations in the GUI thread ________.

(Multiple Choice)
4.8/5
(23)

WebClient's ________ method terminates its executing asynchronous task.

(Multiple Choice)
4.9/5
(33)

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

(Multiple Choice)
4.8/5
(31)

Class Task is part ofNET'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.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.8/5
(31)

A Task promises to ________.

(Multiple Choice)
4.8/5
(29)

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

(Multiple Choice)
4.8/5
(27)
Showing 1 - 20 of 37
close modal

Filters

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