test upload

4
When users attempt to retrieve a product from the product pagea run-time excepti on occurs if the product does not exist. You need to route the exception to the CustomException.aspx page. Which method should you add to MvcApplication? A. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filte rs.Addnew HandleErrorAttribute{ExceptionType = typeofIndexOutOfBoundsException,View = "Cus tomException",};} B. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filte rs.Addnew HandleErrorAttribute{ExceptionType = typeofNullReferenceException,View = "Custom Exception",};} C. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filte rs.Addnew HandleErrorAttribute{ExceptionType = typeofIndexOutOfBoundsException,Handler = "CustomException",};} D. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filte rs.Addnew HandleErrorAttribute{ExceptionType = typeofNullReferenceException,Handler = "Cus tomException",};} Answer: B You are developing an ASP.NET MVC application that displays stock market informa tion. The stock market information updates frequently and must be displayed in r eal-time. You need to eliminate unnecessary header dataminimize latencyand trans mit data over a full-duplex connection. What should you do? A. Implement long-running HTTP requests. B. Configure polling from the browser. C. Instantiate a MessageChannel object on the client. D. Implement WebSockets protocol on the client and the server. Answer: D Customers download videos by using HTTP clients that support various content enc odings. You need to configure caching on the DownloadVideo action to maximize pe rformance. Which attribute should you add? A. [OutputCacheVaryByCustom = "gzip",VaryByContentEncoding = "all",Location = Ou tputCacheLocation.Any,] B. [OutputCacheVaryByHeader = "Cache-Control",Location = OutputCacheLocation.Ser verAndClient,CacheProfile = "gzip"] C. [OutputCacheLocation = OutputCacheLocation.AnyVaryByParam = "videoId",VaryByC ontentEncoding = "gzip;q=1.0compress; q=0.5*;q=0"] D. [OutputCacheLocation = OutputCacheLocation.DownstreamVaryByParam = "gzip",Var yByCustom = "browser"] E. [OutputCacheLocation = OutputCacheLocation.DownstreamOrder=1,VaryByContentEnc oding = "gzip;q=1.0compress; q=0.5*;q=0"] Answer: C You are developing an ASP.NET MVC application. You need to authenticate clients by using an ASP.NET membership database. Which authentication method should you implement? A. Windows B. Forms C. Basic D. Kerberos Answer: B You are developing an ASP.NET MVC application. The application must allow users to enter JavaScript in a feedback text box only. You need to disable request val

Upload: hari-kishan-reddy

Post on 08-Apr-2016

3 views

Category:

Documents


0 download

DESCRIPTION

test

TRANSCRIPT

Page 1: Test Upload

When users attempt to retrieve a product from the product pagea run-time exception occurs if the product does not exist. You need to route the exception to the CustomException.aspx page.Which method should you add to MvcApplication?A. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filters.AddnewHandleErrorAttribute{ExceptionType = typeofIndexOutOfBoundsException,View = "CustomException",};}B. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filters.AddnewHandleErrorAttribute{ExceptionType = typeofNullReferenceException,View = "CustomException",};}C. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filters.AddnewHandleErrorAttribute{ExceptionType = typeofIndexOutOfBoundsException,Handler ="CustomException",};}D. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filters.AddnewHandleErrorAttribute{ExceptionType = typeofNullReferenceException,Handler = "CustomException",};}Answer: B

You are developing an ASP.NET MVC application that displays stock market information. The stock market information updates frequently and must be displayed in real-time. You need to eliminate unnecessary header dataminimize latencyand transmit data over a full-duplex connection.What should you do?A. Implement long-running HTTP requests.B. Configure polling from the browser.C. Instantiate a MessageChannel object on the client.D. Implement WebSockets protocol on the client and the server.Answer: D

Customers download videos by using HTTP clients that support various content encodings. You need to configure caching on the DownloadVideo action to maximize performance.Which attribute should you add?A. [OutputCacheVaryByCustom = "gzip",VaryByContentEncoding = "all",Location = OutputCacheLocation.Any,]B. [OutputCacheVaryByHeader = "Cache-Control",Location = OutputCacheLocation.ServerAndClient,CacheProfile = "gzip"]C. [OutputCacheLocation = OutputCacheLocation.AnyVaryByParam = "videoId",VaryByContentEncoding = "gzip;q=1.0compress; q=0.5*;q=0"]D. [OutputCacheLocation = OutputCacheLocation.DownstreamVaryByParam = "gzip",VaryByCustom = "browser"]E. [OutputCacheLocation = OutputCacheLocation.DownstreamOrder=1,VaryByContentEncoding = "gzip;q=1.0compress; q=0.5*;q=0"]Answer: C

You are developing an ASP.NET MVC application. You need to authenticate clients by using an ASP.NET membership database.Which authentication method should you implement?A. WindowsB. FormsC. BasicD. KerberosAnswer: B

You are developing an ASP.NET MVC application. The application must allow users to enter JavaScript in a feedback text box only. You need to disable request val

Page 2: Test Upload

idation. What should you do?A. Apply and set the ValidateInput attribute on the text box to FALSE.B. Apply and set the CausesClientSideValidation attribute on the text box to FALSE.C. Use the HttpRequest.Unvalidated property to read the unvalidated form value.D. Use the HttpRequest.Form property to read the unvalidated form value.Answer: C

When users attempt to retrieve a product from the product pagea run-time exception occurs if the product does not exist. You need to route the exception to the CustomException.aspx page.Which method should you add to MvcApplication?A. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filters.AddnewHandleErrorAttribute{ExceptionType = typeofIndexOutOfBoundsException,View = "CustomException",};}B. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filters.AddnewHandleErrorAttribute{ExceptionType = typeofNullReferenceException,View = "CustomException",};}C. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filters.AddnewHandleErrorAttribute{ExceptionType = typeofIndexOutOfBoundsException,Handler ="CustomException",};}D. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filters.AddnewHandleErrorAttribute{ExceptionType = typeofNullReferenceException,Handler = "CustomException",};}Answer: B

You are developing an ASP.NET MVC application that displays stock market information. The stock market information updates frequently and must be displayed in real-time. You need to eliminate unnecessary header dataminimize latencyand transmit data over a full-duplex connection.What should you do?A. Implement long-running HTTP requests.B. Configure polling from the browser.C. Instantiate a MessageChannel object on the client.D. Implement WebSockets protocol on the client and the server.Answer: D

Customers download videos by using HTTP clients that support various content encodings. You need to configure caching on the DownloadVideo action to maximize performance.Which attribute should you add?A. [OutputCacheVaryByCustom = "gzip",VaryByContentEncoding = "all",Location = OutputCacheLocation.Any,]B. [OutputCacheVaryByHeader = "Cache-Control",Location = OutputCacheLocation.ServerAndClient,CacheProfile = "gzip"]C. [OutputCacheLocation = OutputCacheLocation.AnyVaryByParam = "videoId",VaryByContentEncoding = "gzip;q=1.0compress; q=0.5*;q=0"]D. [OutputCacheLocation = OutputCacheLocation.DownstreamVaryByParam = "gzip",VaryByCustom = "browser"]E. [OutputCacheLocation = OutputCacheLocation.DownstreamOrder=1,VaryByContentEncoding = "gzip;q=1.0compress; q=0.5*;q=0"]Answer: C

You are developing an ASP.NET MVC application. You need to authenticate clients

Page 3: Test Upload

by using an ASP.NET membership database.Which authentication method should you implement?A. WindowsB. FormsC. BasicD. KerberosAnswer: B

You are developing an ASP.NET MVC application. The application must allow users to enter JavaScript in a feedback text box only. You need to disable request validation. What should you do?A. Apply and set the ValidateInput attribute on the text box to FALSE.B. Apply and set the CausesClientSideValidation attribute on the text box to FALSE.C. Use the HttpRequest.Unvalidated property to read the unvalidated form value.D. Use the HttpRequest.Form property to read the unvalidated form value.Answer: C

When users attempt to retrieve a product from the product pagea run-time exception occurs if the product does not exist. You need to route the exception to the CustomException.aspx page.Which method should you add to MvcApplication?A. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filters.AddnewHandleErrorAttribute{ExceptionType = typeofIndexOutOfBoundsException,View = "CustomException",};}B. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filters.AddnewHandleErrorAttribute{ExceptionType = typeofNullReferenceException,View = "CustomException",};}C. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filters.AddnewHandleErrorAttribute{ExceptionType = typeofIndexOutOfBoundsException,Handler ="CustomException",};}D. public static void RegisterGlobalFiltersGlobalFilterCollection filters {filters.AddnewHandleErrorAttribute{ExceptionType = typeofNullReferenceException,Handler = "CustomException",};}Answer: B

You are developing an ASP.NET MVC application that displays stock market information. The stock market information updates frequently and must be displayed in real-time. You need to eliminate unnecessary header dataminimize latencyand transmit data over a full-duplex connection.What should you do?A. Implement long-running HTTP requests.B. Configure polling from the browser.C. Instantiate a MessageChannel object on the client.D. Implement WebSockets protocol on the client and the server.Answer: D

Customers download videos by using HTTP clients that support various content encodings. You need to configure caching on the DownloadVideo action to maximize performance.Which attribute should you add?A. [OutputCacheVaryByCustom = "gzip",VaryByContentEncoding = "all",Location = OutputCacheLocation.Any,]B. [OutputCacheVaryByHeader = "Cache-Control",Location = OutputCacheLocation.Ser

Page 4: Test Upload

verAndClient,CacheProfile = "gzip"]C. [OutputCacheLocation = OutputCacheLocation.AnyVaryByParam = "videoId",VaryByContentEncoding = "gzip;q=1.0compress; q=0.5*;q=0"]D. [OutputCacheLocation = OutputCacheLocation.DownstreamVaryByParam = "gzip",VaryByCustom = "browser"]E. [OutputCacheLocation = OutputCacheLocation.DownstreamOrder=1,VaryByContentEncoding = "gzip;q=1.0compress; q=0.5*;q=0"]Answer: C

You are developing an ASP.NET MVC application. You need to authenticate clients by using an ASP.NET membership database.Which authentication method should you implement?A. WindowsB. FormsC. BasicD. KerberosAnswer: B

You are developing an ASP.NET MVC application. The application must allow users to enter JavaScript in a feedback text box only. You need to disable request validation. What should you do?A. Apply and set the ValidateInput attribute on the text box to FALSE.B. Apply and set the CausesClientSideValidation attribute on the text box to FALSE.C. Use the HttpRequest.Unvalidated property to read the unvalidated form value.D. Use the HttpRequest.Form property to read the unvalidated form value.Answer: C