C# Mastery Hub
Home
Challenges
Discussion
Lessons
Core Topics
C# Fundamentals
Console Applications
Classes & OOP
Windows Forms
ASP.NET Core
SQL Server
VS & SQL Connection
RDLC Reports
.NET MAUI
Getting Started
Getting Started
Website Development
SEO Guide
Security
Project Workflow
Extra Topics
Cloud & Deployment
AWS Cloud
Deployment
About
Contact
Test Your Knowledge
Extra Topics - Lesson 5: REST APIs with Web API Quiz
Answer all questions to test your understanding
1
What does REST stand for?
Representational State Transfer
Representative State Transfer
Restful State Transfer
Response State Transfer
2
What HTTP method is used to retrieve data in a REST API?
POST
GET
PUT
DELETE
3
What HTTP method is used to create new data in a REST API?
GET
POST
PUT
DELETE
4
What is the purpose of the [ApiController] attribute?
To enable automatic model validation
To disable model validation
To enable CORS
To disable authentication
5
What does the [Route] attribute do?
Defines the URL route for a controller or action
Defines the HTTP method
Defines the response format
Defines the authentication method
6
What status code does CreatedAtAction return?
200 OK
201 Created
204 No Content
404 Not Found
Submit Quiz