Unit 1: Language Preliminaries
- What is the difference between abstract class, interface, and sealed class? When would you use each? Write a program demonstrating the use of abstract class with abstract methods and sealed class to prevent inheritance.
- What are indexers in C#? How are they different from properties? Explain with an example.
- Explain the async/await pattern in C#. Why is asynchronous programming important in web applications? Provide a simple example.
- Write short notes on (any two): a. File I/O operations in C# b. Method hiding vs Method overriding c. Publish ASP.NET Core application to Azure cloud
- Distinguish between collection and generics. What are named and positional attribute parameters? Write a program to create your own exception when the user gives subject name than "C#".
- Create a class named EMPLOYEE as super class and ENGINEER and DOCTOR as sub class. Make your own assumptions as properties and methods.
- What are the needs for partial class and sealed class? How do you relate delegate with events? State the steps to depl0y .NET core application.
- Differentiate between generic and non-generic collections. Write a simple program to create generic class with generic constructor, generic member variable, generic property and generic method.
- Differentiate between struct and enum. Why do we need to handle the exception? Illustrate with an example with your own customized exception.
- What is the purpose of web form? Write a program to demonstrate the concept of collection and generics.
- Write short notes on (any two): 1. Lambda Expression 2. Containerization using Docker 3. Delegates and Events
Unit 2: Introduction to ASP.NET
- Differentiate between .NET, .NET Core, and Mono frameworks. Explain the compilation and execution process of .NET applications covering CLI, MSIL, and CLR. Discuss different hosting models for ASP.NET Core applications: IIS, Nginx, Kestrel, and Docker containerization.
- Describe the procedure of deploying .NET core application.
- Differentiate between .NET and ASP.NET frameworks. How do you test the .NET core applications?
Unit 3: HTTP and ASP.NET Core
- Describe the ASP.NET Core architecture overview. How does it differ from traditional ASP.NET framework architecture?
- How does ASP.NET core MVC provides patterns-based way to build dynamic website? Explain.
- Desribe the importance of MVC pattern in designing web applications.
- Define HTTP. Explain the MVC pattern.
- Explain about request and response message format with example.
Unit 4: Creating ASP.NET core MVC applications
- What are different Action Result Types in ASP.NET Core MVC? Explain with examples. Design an API Controller that returns JSON response for a Product entity (ProductId, Name, Price, Category) with GET, POST, PUT, and DELETE operations.
- What is model binding in ASP.NET Core? Explain server-side model validation with data annotations.
- How do you create controller? Illustrate with an example. Describe the procedure of rendering HTML with Razor with scenario.
- Describe the life cycle of Dependency Injection container.
- How do you create controller? Mention some requirements for rendering HTML.
- Mention the two types of services managed by IoC container and how they are registered?
- What are tag helpers? What tag helper provides?
- What does dependency injection and IOC container means? Explain.
- What is tag helper? Discuss about razor syntax with an example.
Unit 5: Working with Database
- Explain the role of Connection, Command, Reader, and Adapter classes in ADO.NET. How do they work together to perform database operations?
- List some advantages of Entity Framework over ADO.NET. Assume a database named "IOST" with a table FACULTY(Course_Name, CourseID, No_of_Semester, fee). Insert some records using ADO.NET and retrive the fee of records having name CSIT.
- How do you cache the information of the client and what are its uses? Create a table named BAG(ID, Brand, Price, Date). Perform the following operations using Entity Framework Core. a. Update the Price of those Book to 2000 which are published on 2022. b. Delete the Book which are published in 1981 c. Retrieve the Brand of Book having price greater than 500
- Write an ADO. Net application to read the data from the existing table MOVIE(id, name, genre), where genre is "comedy".
Unit 6: State Management on ASP.NET Core Application
- What is TempData? How is it different from Session state and ViewData? When would you use TempData over other state management techniques
- Explain the use of Cache as a server-side state management strategy. What are the benefits of caching in web applications?
- Define state management. Explain the parts of state management on the client side.
- Give an example to manage the session state.
Unit 7: Client-side Development in ASP.NET Core
- Compare Angular and React frameworks for building Single Page Applications (SPA) with ASP.NET Core backend. What are the advantages and disadvantages of each?
- Write a program to validate the form that takes input user name, password and phone number using JQuery. All fields must be non-empty and phone number must contain exactly 10 digits.
- Why do we need to validate the form? How can you use react for this?
Unit 8: Securing in ASP.NET Core Application
- What is ASP.NET Core Identity? Explain the process of adding authentication to an application and configuring identity services.
- Distinguish between roles and policies. Explain about Kestrel web server in ASP.NET core.
- Explain the chances of SQL injection attack with a scenario.
- Explain the uses of cookies. What types of vulnerabilities can occur in web application? Show the case of Cross-site Scripting attack.
- How to you assign roles, claims and policies? Explain with an example.
- How can you prevent SQL injection attack? Explain with an example.
Unit 9: Hosting and Deploying ASP.NET Core Application
- What is the ASP.NET Core Module? How does it work with IIS to host ASP.NET Core applications?
- Explain the process to deploy the core application.
Miscellaneous / Cross-Chapter Questions
- What is the task of ORM? Discuss about open redirect attacks.
- Write short notes on: a. Polymorphism b. Hidden Field
- How do you manage state on stateless HTTP? How do you validate form using JQuery? Describe with your own assumptions.
- What is the role of adapter class in ADO.NET? List some features of URL routing.
- Define claim and policy in terms of authorization. How and when do you create hidden fields?
- Write short notes on (any two) a. Lambda Expression b. Cross Site Request Forgery c. Single Page Application
- Answer the following questions in short. a. ASP requirements b. Client vs server-side script c. ADO d. VB Script e. Error Handling
- a. Differentiate between ASP and IIS. b. Explain the virtual directory properties.
- a. Explain about request object and session object. b. Differentiate between application object and server object.
- a. Explain about file access with ASP with example. b. What do you mean by debugging ASP? Explain.
- a. Explain the sending and receiving e-mail with ASP with example. b. Explain the components of ASP.
- a. Explain the client-side scripting with practical example. b. What do you mean by Microsoft Net framework? Explain with example.
- Describe any two hosting models for core application. Design a client side validation application using jquery for taking input data from student in Library Management System, assume your own assumptions.
- What types of problems lead to SQL injection attack? Discuss any two types of ASP.Net host models.
- What does single page application means? Discuss about server side strategies.
- Explain the procedure for building, running, and deploying .NET core applications. Write a program to show the possibility of SQL injection attack.
- 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 Employeeld(int), Name varchar(200), Salary(int) using Entity Framework.
- Define open redirect attacks. Discuss about docker and containerization.
- What is named and positional attribute parameters? Describe the .Net architecture design and principles.
- Define data model and data context. What does URL routing mean?
- Write short notes on (any two) a. LINQ b. Open Redirected Attack c. Query String
