WorksheetsWeb API
Total questions: 10
Worksheet time: 7mins
Are models automatically validated if [ApiController] attribute is used for controller class
Yes
No
It has no effect on model validation
ApiController attribute provides automatic HTTP ___ responses
400
401
402
403
404
Is it mandatory to use attribute base routing when using [ControllerApi]?
Yes
No
Such attribute doesn`t exist
Attribute base routing doesn`t exist
What means status code 403 Forbidden?
Error while executing the request
Resource not found
Access denied
User is not logged in
Which datatype is used more often in WebAPI to represent responce?
JSON
HTML
XML
Plain text
Select binding source attributes.
[FromHeader]
[FromRoute]
[FromModel]
[FromAction]
[FromServices]
Which method returns 400 status code?
(a)
Which request HTTP header advertises which content types the client can understand?
(a)
Which method should we call in the Configure method to enable controller routing?
(a)
What data type returns the Ok() method?
ObjectResult
ActionResult
OkResult
RequestResult
