100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PRN231 Already Graded A+ $10.49   Add to cart

Exam (elaborations)

PRN231 Already Graded A+

 3 views  0 purchase
  • Course
  • PRN231 Already Graded A+
  • Institution
  • PRN231 Already Graded A+

PRN231 Already Graded A+ B Choose the correct information about validation attributes. A. Validation attributes allow to specify validation rules for model methods. B. Validation attributes allow to specify validation rules for model properties. C. Validation attributes allow to specify v...

[Show more]

Preview 3 out of 22  pages

  • October 1, 2024
  • 22
  • 2020/2021
  • Exam (elaborations)
  • Questions & answers
  • PRN231 Already Graded A+
  • PRN231 Already Graded A+
avatar-seller
CertifiedGrades
PRN231 Already Graded A+

B

Choose the correct information about validation attributes.

A. Validation attributes allow to specify validation rules for model methods.

B. Validation attributes allow to specify validation rules for model properties.

C. Validation attributes allow to specify validation rules for both model method and model property.

D. Validation attributes allow to specify validation rules for model properties first, then apply for model
methods.

D

Choose the correct information.

A. REST web services communicate over the HTTP specification, using HTTP vocabulary

B. REST is an architectural pattern for developing web services as opposed to a specification

C. REST stands for Representational State Transfer

D. All of the others.

A

What is REST API?

A. A REST API (RESTful API) is an application programming interface that conforms to the constraints of
REST architectural style and allows for interaction with RESTful web services.

B. A REST API (RESTful API) is an application programming that allows for interaction with RESTful web
services without constraints.

C. A REST API (RESTful API) is an application programming interface that conforms to the constraints of
REST architectural style and does not allow for interaction with RESTful web services.

D. A REST API (RESTful API) is an application programming that conforms to the constraints of REST
architectural style and does not allow for interaction with RESTful web services.

D

,What is not a microservice attribute?

A. Independent deployment
B. Technology adoption
C. Consistency and resiliency
D. Combined functionality

C

Which information is true about ASP.NET Core Web API Architecture?

A. The ASP.NET Web API framework has been designed using the task-based asynchronous
programming model from the top to the bottom.

B. Ability to host both in IIS (or development server) and in any nonweb server process (called self-
hosted).

C. All of the others.

D. Can customize many elements of ASP.NET Core Web API by supplying custom implementation.

D

Choose the suitable reasons for choosing .NET for Web Services.

A. Cross-platform.
B. Targeting microservices.
C. Side-by-side .NET versions per application.
D. All of the others.

A

What is complex model binder?

A. In the case the request is complex, pass data in request body as an entity with the desired content-
type, then such kind of request is mapped by complex model binder.

B. If the request is simple, input parameter are of type int, string, Boolean, GUID, decimal, etc. and is
available in the URL, then such kind of request is mapped to complex model binder.

C. In the case the response is complex, pass data in response body as an entity with the desired content-
type, then such kind of response is mapped by complex model binder.

D. None of the others.

A

, Choose the correct information about the use of XMLHttpRequest (XHR) object to call the Web API.

A. var xhttp = new XMLHttpRequest(); xhttp.open("GET",
"https://localhost:44324/api/ApiControllerName", true); xhttp.send();

B. var xhttp = new XMLHttpRequest(); xhttp.open("POST",
"https://localhost:44324/api/ApiControllerName", true); xhttp.sendpost();

C. var xhttp = new XMLHttpRequest(); xhttp.openurl("GET",
"https://localhost:44324/api/ApiControllerName", true); xhttp.send();

D. var xhttp = new XMLHttpRequest(); xhttp.openurl("GET",
"https://localhost:44324/api/ApiControllerName", true); xhttp.sendrequest();

A

To force clients to set a value, make the property nullable and set the Required attribute

A. [Required] public decimal? Price { get; set; }

B. [RequireAttribute(0, 999)] public decimal? Price { get; set; }

C. [RequiredRange(0, 999)] public decimal? Price { get; set; }

D. [RequiredNotNull] public decimal? Price { get; set; }

E

Which of the following is a security issue with web services?

A. Confidentiality
B. Authentication
C. Network Security
D. Cyber Security
E. All of the others.
F. None of the others.

A

How to add gRPC services to an ASP.NET Core application (in Startup.cs)?

A. public void ConfigureServices (IServiceCollection services) {
services.AddGrpc();
}

B. public void ConfigureServices (IApplicationBuiler services)
{

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller CertifiedGrades. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $10.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

78834 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$10.49
  • (0)
  Add to cart