Unit 6: SQL Server and ASP.NET Core Web API - Subjective Questions

CSE253 — .Net Programming • Practice Questions with Detailed Answers

20 questions

1

Explain the main features of SQL Server and describe its role in application development.

2

Describe the major categories of SQL commands with suitable examples.

3

Explain the structure of a SQL Server table and describe the purpose of columns, rows, data types, and indexes.

4

What are SQL Server constraints? Explain primary key, foreign key, unique, not null, check, and default constraints.

5

Explain SQL joins and compare INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL OUTER JOIN with examples.

6

Explain the principles of REST architecture and describe the characteristics of a RESTful service.

7

Describe the HTTP protocol and explain the structure of an HTTP request and response.

8

Explain the commonly used HTTP methods in a REST API and relate them to CRUD operations.

9

Explain HTTP status code categories and describe suitable status codes for common Web API operations.

10

What is ASP.NET Core Web API? Explain its advantages and the role of middleware in an API application.

11

Describe the steps for creating and configuring an ASP.NET Core Web API application.

12

Explain the structure and responsibilities of an API controller in ASP.NET Core.

13

Distinguish between convention-based routing and attribute routing in ASP.NET Core Web API.

14

What are Data Transfer Objects (DTOs)? Explain why DTOs are preferred over exposing database entities directly in a Web API.

15

Describe how CRUD operations are implemented in an ASP.NET Core Web API for a Product resource.

16

Explain model binding and validation in ASP.NET Core Web API. How should invalid client input be handled?

17

Explain dependency injection in ASP.NET Core Web API and describe its benefits when building API controllers.

18

What is Swagger/OpenAPI documentation? Explain how it helps in developing and consuming Web APIs.

19

Describe the procedure for testing an ASP.NET Core Web API using Postman.

20

Explain how an ASP.NET Core Web API can connect to SQL Server using Entity Framework Core.