Computer Science > EXAM > PRN 221 Any% SPEEDRUN Ver 2.0 - Questions and Answers (All)
PRN 221 Any% SPEEDRUN Ver 2.0 - Questions and Answers Which of the following statements related to Task Parallel Library (TPL) is False? a. All of the others b. None of the others c. The Task Paralle... l Library (TPL) is a set of public types and APIs in the System.TPL and System.Threading.Tasks namespaces d. By using TPL, we can maximize the performance of our code while focusing on the work that our program is designed to accomplish Which of the following properties of the WebRequest class can be used to get the URI of the Internet resource associated with the request? a. RequestUri b. None of the others c. RequestURL d. RequestParam SignalR provides two models for communicate between clients and severs: Persistent Connections, Hubs. Choose the correct information about Persistent Connections. a. Persistent Connections provide direct access to a low-level communication protocol that signalR provides. Each client connection to a server is identified by a connectionID. b. None of the others. c. If you have multiple types of messages that you want to send between a server and a client then it is recommended to use Persistent Connections so you do not need to do your own dispatching. d. Persistent Connections provide a High-level API for the client and server to call each other's method. It will be very familiar to those developers who have worked on remote invocation APIs. Choose the correct statement related to Mono-Processor Systems a. The microprocessor receives data from file streams, executes the necessary processes, and sends the results in an output file b. The mono-processor systems use old-fashioned, classic computer architecture and were developed by the outstanding mathematician, John von Neumann c. The mono-processor system works with many users and many tasks running A hub is a class that serves as a high-level pipeline that handles client-server communication. Create a SignalR for your application by adding a class named ChatHub that inherits from Microsoft.AspNetCore.SignalR.Hub a. public class ChatHub : IHubContext { public async Task SendMessage(string user, string message) { await Clients.All.SendAsync("ReceiveMessage", user, message); } } b. public class Hub : ChatHub { public async Task SendMessage(string user, string message) { await Clients.All.SendAsync("ReceiveMessage", user, message); } } c. public class ChatHub : Hub { public async Task SendMessage(string user, string message) {await Clients.All.SendAsync("ReceiveMessage", user, message); } } d. public class ChatHub : IHub { public async Task SendMessage(string user, string message) { await Clients.All.SendAsync("ReceiveMessage", user, message); } } Which of the following methods of the WebResponse Class that returns the data stream from the Internet resource? a. GetResponseStream() b. GetResponse() c. GetStream() d. CreateResponseStream() Handler methods in Razor Pages are methods that are automatically executed as a result of a request. Choose the correct answer of handler methods in Razor Pages. a.The default convention works by matching the HTTP verb used for the request to the name of the method: OnGet(), OnPost(), OnPut() etc. b.All of the others. c.None of the others. d.Handler methods also have optional asynchronous equivalents: OnPostAsync(), OnGetAsync() etc. Suppose that you want to configure the root folder for Razor Pages to be something other than the default. What the following code should you put in ConfigureServices method of Startup.cs file? a.public void ConfigureServices(IServiceCollection services) { services.AddRazorPages(); } b.public void ConfigureServices(IServiceCollection services) { services.AddRazorPages().AddRazorPagesOptions(options => { options.RootDirectory = "/Content"; }); } c.public void ConfigureServices(IServiceCollection services) { services.AddRazorPages().AddRazorPagesOptions("/Content"); } d.public void ConfigureServices(IServiceCollection services [Show More]
Last updated: 1 year ago
Preview 1 out of 25 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
PRN 221 Any% SPEEDRUN Ver 3.0| PRN 221 Any% SPEEDRUN Ver 2.0| PRN 221 Any% SPEEDRUN
By Nurse Henny 1 year ago
$25
3
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Aug 04, 2023
Number of pages
25
Written in
This document has been written for:
Uploaded
Aug 04, 2023
Downloads
0
Views
176
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·