Write short notes on (any two): a. LINQb. Open Redirected Attackc. Query String[5+5+5]
Hosting and Deploying ASP.NET Core Application
1.
Explain the process to deploy the core application.[5]
HTTP and ASP.NET Core
1.
What are the advantages of stateless HTTP in ASP.NET core application? Create a method to insert a record (3, 'John', 12000) onto the table Employee having fields EmployeeId(int), Name varchar(200), Salary(int) using Entity Framework.[10]
2.
Explain about request and response message format with example.[5]
Introduction to ASP.NET
1.
Explain the procedure for building, running, and deploying .NET core applications. Write a program to show the possibility of SQL injection attack.[10]
2.
What is named and positional attribute parameters? Describe the .Net architecture design and principles.[5]
3.
Why do we need to validate the form? How can you use react for this?[5]
Language Preliminaries
1.
Differentiate between struct and enum. Why do we need to handle the exception? Illustrate with an example with your own customized exception.[10]
Securing in ASP.NET Core Application
1.
Define open redirect attacks. Discuss about docker and containerization.[5]
2.
How can you prevent SQL injection attack? Explain with an example.[5]
State Management on ASP.NET Core Application
1.
Give an example to manage the session state.[5]
Working with Database
1.
Define data model and data context. What does URL routing mean?[5]